mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-07-04 14:39:25 +00:00
[neovim] remove unnecessary autocommand and replace it with an option
This commit is contained in:
@ -1,12 +1,5 @@
|
||||
vim.cmd("autocmd BufEnter * ++nested if winnr('$') == 1 && bufname() == 'NvimTree_' . tabpagenr() | quit | endif")
|
||||
|
||||
-- Fixes Autocomment
|
||||
vim.api.nvim_create_autocmd({ "BufWinEnter" }, {
|
||||
callback = function()
|
||||
vim.cmd("set formatoptions-=cro")
|
||||
end,
|
||||
})
|
||||
|
||||
-- Highlight Yanked Text
|
||||
vim.api.nvim_create_autocmd({ "TextYankPost" }, {
|
||||
callback = function()
|
||||
|
Reference in New Issue
Block a user