1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
return {
{
'nvimdev/lspsaga.nvim',
event = 'LspAttach',
dependencies = {
'nvim-tree/nvim-web-devicons',
},
opts = {
symbol_in_winbar = {
respect_root = true,
},
lightbulb = {
virtual_text = false,
}
},
keys = {
{ "gh", "<cmd>Lspsaga finder<CR>", desc = "Lspsaga finder" },
{ "<leader>cx", "<cmd>Lspsaga code_action<CR>", desc = "Lspsaga codeaction" },
{ "<leader>cx", "<cmd><C-U>Lspsaga range_code_action<CR>", mode = "v", desc = "Lspsaga codeaction" },
{ "K", "<cmd>Lspsaga hover_doc<CR>", desc = "Lspsaga hover doc" },
{ "<leader>rn", "<cmd>Lspsaga rename<CR>", desc = "Lspsaga rename" },
{ "[g", "<cmd>Lspsaga diagnostic_jump_next<CR>", desc = "Lspsaga jump to next diagnostic" },
{ "]g", "<cmd>Lspsaga diagnostic_jump_prev<CR>", desc = "Lspsaga jump to previous diagnostic" },
}
},
}
|