summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom/plugins
diff options
context:
space:
mode:
authorKyren223 <ulmliad223@gmail.com>2024-07-24 23:01:35 +0300
committerKyren223 <ulmliad223@gmail.com>2024-07-24 23:01:35 +0300
commit30751966c01d57dd24b0c1992d8ffb78a73f4928 (patch)
treeb9bcc25103908231a5d203fb0044b726735654ef /.config/nvim/lua/custom/plugins
parent269c8a8c3f63d0dcdc61cca8660afc60fddb6a1e (diff)
feat(neovim): changed to my fork of lspsaga and configured it more
Diffstat (limited to '.config/nvim/lua/custom/plugins')
-rw-r--r--.config/nvim/lua/custom/plugins/lspsaga.lua48
1 files changed, 31 insertions, 17 deletions
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 <C-k> in rename to smthing else
- -- bcz I am using <C-k> for moving between windows
- -- Maybe <C-c> for abort, <cr> 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 = '<CR>',
+ quit_in_show = { 'q', '<ESC>' },
+ },
},
- 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 = '<C-c>',
+ exec = '<CR>',
+ select = 'x',
+ },
},
+ symbol_in_winbar = { enable = true },
},
}