No comments on enter (experimental)
This commit is contained in:
@@ -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,
|
||||
})
|
||||
|
||||
@@ -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' } },
|
||||
|
||||
Reference in New Issue
Block a user