aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/config/autocommands.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/lua/config/autocommands.lua b/lua/config/autocommands.lua
index 8fe38c6..14fa473 100644
--- a/lua/config/autocommands.lua
+++ b/lua/config/autocommands.lua
@@ -31,3 +31,11 @@ vim.api.nvim_create_autocmd("BufWritePre", {
end,
})
+-- disable autocommenting lines
+vim.api.nvim_create_autocmd("FileType", {
+ group = augroup,
+ pattern = "*",
+ callback = function()
+ vim.opt_local.formatoptions:remove({ "r", "o" })
+ end,
+})