neovim: remove autocmd with filetype detection

This commit is contained in:
2023-07-30 00:15:08 +03:00
parent 705e9157d2
commit 70015edf5b
3 changed files with 3 additions and 17 deletions

View File

@@ -16,23 +16,6 @@ vim.api.nvim_create_autocmd("BufEnter", {
end,
})
vim.api.nvim_create_autocmd("BufEnter", {
pattern = "*",
group = group,
callback = function()
local ft = vim.bo.filetype
if ft == "fugitive" then
vim.wo.colorcolumn = ""
end
if ft == "gitcommit" then
vim.wo.colorcolumn = "50"
vim.cmd("setlocal spell")
end
end,
})
local function open_nvim_tree(data)
-- buffer is a directory
local directory = vim.fn.isdirectory(data.file) == 1