diff --git a/lua/custom/plugins/emmet.lua b/lua/custom/plugins/emmet.lua index 2b0b240..17138d3 100644 --- a/lua/custom/plugins/emmet.lua +++ b/lua/custom/plugins/emmet.lua @@ -2,8 +2,7 @@ return { "mattn/emmet-vim", config = function() local autocmd = vim.api.nvim_create_autocmd - autocmd("FileType", { pattern = "html", command = [[EmmetInstall]] }) - autocmd("FileType", { pattern = "css", command = [[EmmetInstall]] }) + autocmd("FileType", { pattern = { "html", "css" }, command = [[EmmetInstall]] }) vim.keymap.set("n", "le", function() vim.cmd(string.format("Emmet %s", vim.fn.input("Emmet: "))) diff --git a/lua/jabuxas/set.lua b/lua/jabuxas/set.lua index d18acb8..7a8fefb 100644 --- a/lua/jabuxas/set.lua +++ b/lua/jabuxas/set.lua @@ -30,8 +30,16 @@ vim.opt.updatetime = 50 vim.opt.colorcolumn = "80" vim.cmd [[highlight ColorColumn ctermbg=235 guibg=#262626]] -vim.api.nvim_create_autocmd({ "WinLeave" }, { pattern = "*", callback = function() vim.opt.colorcolumn = "0" end, }) -vim.api.nvim_create_autocmd({ "WinEnter" }, { pattern = "*", callback = function() vim.opt.colorcolumn = "80" end, }) +local autocmd = vim.api.nvim_create_autocmd +autocmd({ "WinLeave" }, { pattern = "*", callback = function() vim.opt.colorcolumn = "0" end, }) +autocmd({ "WinEnter" }, { pattern = "*", callback = function() vim.opt.colorcolumn = "80" end, }) +autocmd({ "BufReadPre", "BufEnter", "BufRead", "BufNewFile" }, + { + pattern = { "*.neorg", "*.md" }, + callback = function() + require("cmp").setup.buffer({ enabled = false }) + end + }) vim.g.mapleader = " "