From 6d5a01d6b0bae1d687eec916d86d31f2fff1cc46 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 1 Aug 2025 18:12:15 +0300 Subject: [PATCH] No comments on enter (experimental) --- .config/nvim/lua/autocmds.lua | 2 +- .config/nvim/lua/keymaps.lua | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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, }) diff --git a/.config/nvim/lua/keymaps.lua b/.config/nvim/lua/keymaps.lua index 950d212..5414214 100644 --- a/.config/nvim/lua/keymaps.lua +++ b/.config/nvim/lua/keymaps.lua @@ -113,7 +113,6 @@ local keymaps = { { 'n', 'K', 'Lspsaga hover_doc', { desc = 'Documentation' } }, { 'n', 'R', 'Lspsaga rename', { desc = '[R]ename' } }, { { 'n', 'i' }, '', 'Lspsaga code_action', { desc = 'Code Actions' } }, - { 'n', 'ca', 'Lspsaga code_action', { desc = '[C]ode [A]ctions' } }, { 'n', 'e', next_diagnostic(severity.ERROR), { desc = 'Goto [E]rror' } }, { 'n', 'E', prev_diagnostic(severity.ERROR), { desc = 'Goto [E]rror (prev)' } }, { 'n', 'w', next_diagnostic(severity.WARN), { desc = 'Goto [W]arning' } },