nvim: Fix mapping incompabitility
Fixed keymap incompabitility introduced with switching to lspsaga code actions. It used `gc` for normal/visual mode code actions, which I already make use of for toggling comments in code. Switched to `ca` instead.
This commit is contained in:
parent
bcd90e7048
commit
d880893e21
1 changed files with 2 additions and 2 deletions
|
@ -8,9 +8,9 @@ local on_attach = function(_, _)
|
||||||
{noremap = true, silent = true})
|
{noremap = true, silent = true})
|
||||||
vim.api.nvim_set_keymap("n", "gd", "<cmd>lua require'lspsaga.provider'.preview_definition()<CR>",
|
vim.api.nvim_set_keymap("n", "gd", "<cmd>lua require'lspsaga.provider'.preview_definition()<CR>",
|
||||||
{noremap = true, silent = true})
|
{noremap = true, silent = true})
|
||||||
vim.api.nvim_set_keymap("n", "gc", "<cmd>lua require 'lspsaga.codeaction'.code_action()<CR>",
|
vim.api.nvim_set_keymap("n", "ca", "<cmd>lua require 'lspsaga.codeaction'.code_action()<CR>",
|
||||||
{noremap = true, silent = true})
|
{noremap = true, silent = true})
|
||||||
vim.api.nvim_set_keymap("v", "gc", "<cmd>'<,'>lua require 'lspsaga.codeaction'.range_code_action()<CR>",
|
vim.api.nvim_set_keymap("v", "ca", "<cmd>'<,'>lua require 'lspsaga.codeaction'.range_code_action()<CR>",
|
||||||
{noremap = true, silent = true})
|
{noremap = true, silent = true})
|
||||||
vim.api.nvim_set_keymap("n", "K", "<cmd>lua require('lspsaga.hover').render_hover_doc()<CR>",
|
vim.api.nvim_set_keymap("n", "K", "<cmd>lua require('lspsaga.hover').render_hover_doc()<CR>",
|
||||||
{noremap = true, silent = true})
|
{noremap = true, silent = true})
|
||||||
|
|
Loading…
Reference in a new issue