✨ feat(nvim): add new autocmd to disable newline comments
This commit is contained in:
parent
287307851a
commit
f749811f40
1 changed files with 8 additions and 0 deletions
|
@ -74,3 +74,11 @@ vim.api.nvim_create_autocmd("TermOpen", {
|
||||||
vim.cmd("setlocal listchars= nonumber norelativenumber")
|
vim.cmd("setlocal listchars= nonumber norelativenumber")
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Disable next line comments
|
||||||
|
vim.api.nvim_create_autocmd("BufEnter", {
|
||||||
|
callback = function()
|
||||||
|
vim.cmd("set formatoptions-=cro")
|
||||||
|
vim.cmd("setlocal formatoptions-=cro")
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
Loading…
Add table
Reference in a new issue