From 6d5a01d6b0bae1d687eec916d86d31f2fff1cc46 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 1 Aug 2025 18:12:15 +0300 Subject: No comments on enter (experimental) --- .config/nvim/lua/autocmds.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config/nvim/lua/autocmds.lua') diff --git a/.config/nvim/lua/autocmds.lua b/.config/nvim/lua/autocmds.lua index 1e9ac20..9b54e17 100644 --- a/.config/nvim/lua/autocmds.lua +++ b/.config/nvim/lua/autocmds.lua @@ -14,7 +14,7 @@ vim.api.nvim_create_autocmd('BufEnter', { desc = 'Disable newlines on commented lines from continuing the comment', group = augroup('disable-comments-continuation'), callback = function() - -- vim.opt_local.formatoptions:remove('r') -- no comments on enter + vim.opt_local.formatoptions:remove('r') -- no comments on enter vim.opt_local.formatoptions:remove('o') -- no comments on `o` or `O` end, }) -- cgit v1.3.1