feat(nvim): modify formatoptions

chezmoi
sgoudham 2 years ago
parent 19f60bfefc
commit d8ed2ef2c2
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -59,3 +59,12 @@ vim.api.nvim_create_autocmd("LspAttach", {
client.server_capabilities.semanticTokensProvider = nil
end,
})
-- Stop comments on new lines when pressing 'o'
vim.api.nvim_create_augroup("stop_comments_on_o", {})
vim.api.nvim_create_autocmd("BufEnter", {
group = "stop_comments_on_o",
callback = function(_)
vim.opt.formatoptions:remove("o")
end,
})

Loading…
Cancel
Save