feat(nvim): add new autocmd to disable newline comments

This commit is contained in:
Sergio Laín 2024-01-12 11:42:25 +01:00
parent 287307851a
commit f749811f40
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -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,
})