AutoYADM commit: 2024-12-16 15:05:03
This commit is contained in:
parent
709c7da798
commit
cc50febb50
2 changed files with 16 additions and 34 deletions
|
@ -1,38 +1,19 @@
|
||||||
-- Autocmds are automatically loaded on the VeryLazy event
|
-- Autocmds are automatically loaded on the VeryLazy event
|
||||||
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
|
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
|
||||||
-- Add any additional autocmds here
|
|
||||||
-- vim.api.nvim_create_autocmd("FileType", {
|
vim.api.nvim_create_autocmd("VimEnter", {
|
||||||
-- pattern = "python",
|
callback = function()
|
||||||
-- callback = function()
|
local args = vim.fn.argv()
|
||||||
-- local cl = require("colorbuddy")
|
print(vim.inspect(args))
|
||||||
-- cl.Group.new("@variable", cl.colors.primary)
|
if #args > 0 then
|
||||||
-- cl.Group.new("@string", cl.colors.secondary)
|
local arg = args[1]
|
||||||
-- cl.Group.new("@keyword", cl.colors.complement)
|
if vim.fn.isdirectory(arg) == 1 then
|
||||||
-- cl.Group.new("@keyword.operator", cl.colors.complement)
|
vim.api.nvim_exec_autocmds("User", { pattern = "DirOpened" })
|
||||||
-- cl.Group.new("@constant.builtin", cl.colors.complement)
|
end
|
||||||
-- end,
|
end
|
||||||
-- })
|
end,
|
||||||
-- vim.api.nvim_create_autocmd("FileType", {
|
})
|
||||||
-- pattern = "tex",
|
|
||||||
-- callback = function()
|
|
||||||
-- vim.cmd([[
|
|
||||||
-- syntax match texMathSymbol "\\oplus" conceal cchar=⊕
|
|
||||||
-- ]])
|
|
||||||
-- end,
|
|
||||||
-- })
|
|
||||||
-- This autocommand fixes syntax highlighting for inline math in markdown files
|
|
||||||
-- Together with vimtex, it will apply very sexy good stuff here!
|
|
||||||
-- vim.api.nvim_create_autocmd("FileType", {
|
|
||||||
-- patterm = "tex",
|
|
||||||
-- callback = function()
|
|
||||||
-- vim.api.nvim_create_autocmd("BufWrite", {
|
|
||||||
-- buffer = 0,
|
|
||||||
-- callback = function()
|
|
||||||
-- vim.api.nvim_command("VimtexCompile")
|
|
||||||
-- end,
|
|
||||||
-- })
|
|
||||||
-- end,
|
|
||||||
-- })
|
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
pattern = "markdown",
|
pattern = "markdown",
|
||||||
callback = function()
|
callback = function()
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
return {
|
return {
|
||||||
"stevearc/oil.nvim",
|
"stevearc/oil.nvim",
|
||||||
-- lazy = false,
|
-- lazy = false,
|
||||||
event = "VimEnter",
|
-- event = "VimEnter",
|
||||||
|
event = "User DirOpened",
|
||||||
keys = {
|
keys = {
|
||||||
{ "-", "<CMD>Oil<CR>", desc = "Open Oil" },
|
{ "-", "<CMD>Oil<CR>", desc = "Open Oil" },
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue