nvim fix formatoptions lua
This commit is contained in:
parent
7118cb6f95
commit
3495a3edc7
@ -58,9 +58,15 @@ opt.colorcolumn = '81'
|
||||
opt.scrolloff = 7
|
||||
|
||||
|
||||
opt.formatoptions:remove("c")
|
||||
opt.formatoptions:remove("r")
|
||||
opt.formatoptions:remove("o")
|
||||
-- disable paste comment on new line
|
||||
vim.api.nvim_create_autocmd("BufEnter", {
|
||||
pattern = {"*"},
|
||||
callback = function()
|
||||
opt.formatoptions:remove("c")
|
||||
opt.formatoptions:remove("r")
|
||||
opt.formatoptions:remove("o")
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
opt.termguicolors = true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user