[nvim] lasagna keybinding consistency
This commit is contained in:
parent
d9b107d12e
commit
baf26fd597
|
@ -49,4 +49,8 @@ if type -q fzf
|
|||
end
|
||||
end
|
||||
|
||||
# set theme
|
||||
fish_config theme choose gruvbox-dark
|
||||
|
||||
# set keybindings
|
||||
bind \cB beginning-of-line
|
||||
|
|
|
@ -12,9 +12,9 @@ return {
|
|||
symbol_in_winbar = {
|
||||
enable = false,
|
||||
},
|
||||
diagnostic = {
|
||||
show_code_action = false,
|
||||
},
|
||||
diagnostic = {
|
||||
show_code_action = false,
|
||||
},
|
||||
})
|
||||
|
||||
local keymap = vim.keymap.set
|
||||
|
@ -23,30 +23,30 @@ return {
|
|||
-- If there is no definition, it will instead be hidden
|
||||
-- When you use an action in finder like "open vsplit",
|
||||
-- you can use <C-t> to jump back
|
||||
keymap("n", "gh", "<cmd>Lspsaga lsp_finder<CR>")
|
||||
keymap("n", "<leader>gf", "<cmd>Lspsaga lsp_finder<CR>")
|
||||
|
||||
-- Code action
|
||||
keymap({ "n", "v" }, "<leader>ca", "<cmd>Lspsaga code_action<CR>")
|
||||
|
||||
-- Rename all occurrences of the hovered word for the entire file
|
||||
keymap("n", "gr", "<cmd>Lspsaga rename<CR>")
|
||||
keymap("n", "<leader>gr", "<cmd>Lspsaga rename<CR>")
|
||||
|
||||
-- Peek definition
|
||||
-- You can edit the file containing the definition in the floating window
|
||||
-- It also supports open/vsplit/etc operations, do refer to "definition_action_keys"
|
||||
-- It also supports tagstack
|
||||
-- Use <C-t> to jump back
|
||||
keymap("n", "gp", "<cmd>Lspsaga peek_definition<CR>")
|
||||
keymap("n", "<leader>gp", "<cmd>Lspsaga peek_definition<CR>")
|
||||
|
||||
-- Go to definition
|
||||
keymap("n", "gd", "<cmd>Lspsaga goto_definition<CR>")
|
||||
keymap("n", "<leader>gd", "<cmd>Lspsaga goto_definition<CR>")
|
||||
|
||||
-- Peek type definition
|
||||
-- You can edit the file containing the type definition in the floating window
|
||||
-- It also supports open/vsplit/etc operations, do refer to "definition_action_keys"
|
||||
-- It also supports tagstack
|
||||
-- Use <C-t> to jump back
|
||||
keymap("n", "gt", "<cmd>Lspsaga peek_type_definition<CR>")
|
||||
keymap("n", "<leader>gt", "<cmd>Lspsaga peek_type_definition<CR>")
|
||||
|
||||
-- Show line diagnostics
|
||||
-- You can pass argument ++unfocus to
|
||||
|
@ -84,11 +84,11 @@ return {
|
|||
-- there is no information available.
|
||||
-- To disable it just use ":Lspsaga hover_doc ++quiet"
|
||||
-- Pressing the key twice will enter the hover window
|
||||
keymap("n", "K", "<cmd>Lspsaga hover_doc<CR>")
|
||||
keymap("n", "<leader>gk", "<cmd>Lspsaga hover_doc<CR>")
|
||||
|
||||
-- Call hierarchy
|
||||
keymap("n", "<Leader>ci", "<cmd>Lspsaga incoming_calls<CR>")
|
||||
keymap("n", "<Leader>co", "<cmd>Lspsaga outgoing_calls<CR>")
|
||||
keymap("n", "<leader>ci", "<cmd>Lspsaga incoming_calls<CR>")
|
||||
keymap("n", "<leader>co", "<cmd>Lspsaga outgoing_calls<CR>")
|
||||
|
||||
-- Floating terminal
|
||||
keymap({ "n", "t" }, "<A-d>", "<cmd>Lspsaga term_toggle<CR>")
|
||||
|
|
Loading…
Reference in New Issue