diff options
| author | Crony Akatsuki <crony@cronyakatsuki.xyz> | 2025-11-08 18:14:52 +0100 |
|---|---|---|
| committer | Crony Akatsuki <crony@cronyakatsuki.xyz> | 2025-11-08 18:14:52 +0100 |
| commit | 796131ba16b83978d92081b971abb51b269a767a (patch) | |
| tree | aecc696ce99a8895aef11a735a1e63fbc429bcb3 /lua/config/autocommands.lua | |
| parent | aa8ac561c5bb22828d060541f0450a96e6ead243 (diff) | |
| download | nvim-796131ba16b83978d92081b971abb51b269a767a.zip nvim-796131ba16b83978d92081b971abb51b269a767a.tar.gz | |
feat: disable autocommenting lines.
Diffstat (limited to 'lua/config/autocommands.lua')
| -rw-r--r-- | lua/config/autocommands.lua | 8 |
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, +}) |
