nvim fix formatoptions lua

This commit is contained in:
thek4n 2024-02-01 16:19:07 +03:00
parent 7118cb6f95
commit 3495a3edc7

View File

@ -58,9 +58,15 @@ opt.colorcolumn = '81'
opt.scrolloff = 7 opt.scrolloff = 7
-- disable paste comment on new line
vim.api.nvim_create_autocmd("BufEnter", {
pattern = {"*"},
callback = function()
opt.formatoptions:remove("c") opt.formatoptions:remove("c")
opt.formatoptions:remove("r") opt.formatoptions:remove("r")
opt.formatoptions:remove("o") opt.formatoptions:remove("o")
end,
})
opt.termguicolors = true opt.termguicolors = true