diff options
| author | Kyren223 <kyren223@proton.me> | 2025-08-01 18:12:15 +0300 |
|---|---|---|
| committer | Kyren223 <kyren223@proton.me> | 2025-08-01 18:12:15 +0300 |
| commit | 6d5a01d6b0bae1d687eec916d86d31f2fff1cc46 (patch) | |
| tree | 1ffe8345267ca59d2a01422af1f0fe7e8f5568c4 | |
| parent | f1c40fbd6603d85d66c94965f1c329bd3c07d402 (diff) | |
No comments on enter (experimental)
| -rw-r--r-- | .config/nvim/lua/autocmds.lua | 2 | ||||
| -rw-r--r-- | .config/nvim/lua/keymaps.lua | 1 |
2 files changed, 1 insertions, 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', '<cmd>Lspsaga hover_doc<cr>', { desc = 'Documentation' } }, { 'n', 'R', '<cmd>Lspsaga rename<cr>', { desc = '[R]ename' } }, { { 'n', 'i' }, '<M-Enter>', '<cmd>Lspsaga code_action<cr>', { desc = 'Code Actions' } }, - { 'n', '<leader>ca', '<cmd>Lspsaga code_action<cr><Esc>', { desc = '[C]ode [A]ctions' } }, { 'n', '<leader>e', next_diagnostic(severity.ERROR), { desc = 'Goto [E]rror' } }, { 'n', '<leader>E', prev_diagnostic(severity.ERROR), { desc = 'Goto [E]rror (prev)' } }, { 'n', '<leader>w', next_diagnostic(severity.WARN), { desc = 'Goto [W]arning' } }, |
