aboutsummaryrefslogtreecommitdiff
path: root/lua/config
diff options
context:
space:
mode:
authorCrony Akatsuki <crony@cronyakatsuki.xyz>2025-11-08 18:14:52 +0100
committerCrony Akatsuki <crony@cronyakatsuki.xyz>2025-11-08 18:14:52 +0100
commit796131ba16b83978d92081b971abb51b269a767a (patch)
treeaecc696ce99a8895aef11a735a1e63fbc429bcb3 /lua/config
parentaa8ac561c5bb22828d060541f0450a96e6ead243 (diff)
downloadnvim-796131ba16b83978d92081b971abb51b269a767a.zip
nvim-796131ba16b83978d92081b971abb51b269a767a.tar.gz
feat: disable autocommenting lines.
Diffstat (limited to 'lua/config')
-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,
+})