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