diff options
Diffstat (limited to 'neovim/.config/nvim/lua/plugins/lspsaga.lua')
-rw-r--r-- | neovim/.config/nvim/lua/plugins/lspsaga.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/neovim/.config/nvim/lua/plugins/lspsaga.lua b/neovim/.config/nvim/lua/plugins/lspsaga.lua new file mode 100644 index 0000000..1fe1194 --- /dev/null +++ b/neovim/.config/nvim/lua/plugins/lspsaga.lua @@ -0,0 +1,24 @@ +return { + { + 'nvimdev/lspsaga.nvim', + lazy = false, + priority = 500, + dependencies = { + 'nvim-tree/nvim-web-devicons', + }, + opts = { + symbol_in_winbar = { + respect_root = true, + }, + }, + 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" }, + } + }, +} |