From 30751966c01d57dd24b0c1992d8ffb78a73f4928 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Wed, 24 Jul 2024 23:01:35 +0300 Subject: feat(neovim): changed to my fork of lspsaga and configured it more --- .config/nvim/lua/custom/plugins/lspsaga.lua | 48 +++++++++++++++++++---------- 1 file changed, 31 insertions(+), 17 deletions(-) (limited to '.config/nvim/lua/custom/plugins') diff --git a/.config/nvim/lua/custom/plugins/lspsaga.lua b/.config/nvim/lua/custom/plugins/lspsaga.lua index e9d307d..a6942b5 100644 --- a/.config/nvim/lua/custom/plugins/lspsaga.lua +++ b/.config/nvim/lua/custom/plugins/lspsaga.lua @@ -1,26 +1,40 @@ return { - -- TODO: Change in rename to smthing else - -- bcz I am using for moving between windows - -- Maybe for abort, for confirm - 'nvimdev/lspsaga.nvim', + -- 'nvimdev/lspsaga.nvim', + 'Kyren223/lspsaga.nvim', dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, event = 'LspAttach', opts = { - lightbulb = { - enable = false, - sign = false, - virtual_text = true, + ui = { + border = 'rounded', + foldericon = false, + title = false, + kind = nil, }, - implement = { - sign = false, - virtual_text = true, + hover = { open_cmd = '!firefox.exe' }, + diagnostic = { + show_layout = 'float', + keys = { + exec_action = 'o', + quit = 'q', + toggle_or_jump = '', + quit_in_show = { 'q', '' }, + }, }, - floaterm = { - height = 0.7, - width = 0.7, - }, - outline = { - layout = 'float', + code_action = { show_preview = false }, + lightbulb = { enable = false }, + rename = { + pre_hook = function() + vim.cmd.IlluminateToggle() + end, + post_hook = function() + vim.cmd.IlluminateToggle() + end, + keys = { + quit = '', + exec = '', + select = 'x', + }, }, + symbol_in_winbar = { enable = true }, }, } -- cgit v1.3.1