summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/lspsaga.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/plugins/lspsaga.lua')
-rw-r--r--.config/nvim/lua/plugins/lspsaga.lua44
1 files changed, 44 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/lspsaga.lua b/.config/nvim/lua/plugins/lspsaga.lua
new file mode 100644
index 0000000..a8fe588
--- /dev/null
+++ b/.config/nvim/lua/plugins/lspsaga.lua
@@ -0,0 +1,44 @@
+return {
+ -- 'nvimdev/lspsaga.nvim',
+ 'Kyren223/lspsaga.nvim',
+ dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' },
+ event = 'LspAttach',
+ opts = {
+ ui = {
+ border = 'rounded',
+ foldericon = false,
+ title = false,
+ kind = nil,
+ },
+ hover = { open_cmd = '!firefox.exe' },
+ diagnostic = {
+ show_layout = 'float',
+ keys = {
+ exec_action = 'o',
+ quit = 'q',
+ toggle_or_jump = '<CR>',
+ quit_in_show = { 'q', '<ESC>' },
+ },
+ },
+ code_action = { show_preview = false },
+ lightbulb = { enable = false },
+ rename = {
+ pre_hook = function()
+ pcall(function()
+ vim.cmd('IlluminateToggle')
+ end)
+ end,
+ post_hook = function()
+ pcall(function()
+ vim.cmd('IlluminateToggle')
+ end)
+ end,
+ keys = {
+ quit = '<C-c>',
+ exec = '<CR>',
+ select = 'x',
+ },
+ },
+ symbol_in_winbar = { enable = false },
+ },
+}