-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lspsaga don't fucking work, issue - nvimdev/lspsaga.nvim#1484, go to …
…lazyvim
- Loading branch information
Dmitriy Smotrov
committed
Oct 29, 2024
1 parent
37730c8
commit f31160b
Showing
2 changed files
with
39 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
local status, lspsaga = pcall(require, 'lspsaga') | ||
|
||
if (not status) then | ||
print('lspsaga is not installed!') | ||
end | ||
|
||
|
||
lspsaga.setup { | ||
server_filetype_map = {}, | ||
} | ||
|
||
local opts = { | ||
noremap = true, | ||
silent = true, | ||
} | ||
|
||
vim.keymap.set('n', '<C-]>', '[[<CMD>Lspsaga diagnostic_jump_next<CR>]]', opts) | ||
vim.keymap.set('n', '<C-[>', '[[<CMD>Lspsaga diagnostic_jump_prev<CR>]]', opts) | ||
vim.keymap.set('n', '<K>', '[[<CMD>Lspsaga hover_doc<CR>]]', opts) | ||
vim.keymap.set('n', 'gd', '[[<CMD>Lspsaga lsp_finder<CR>]]', opts) | ||
vim.keymap.set('n', 'gs', '[[<CMD>Lspsaga signature_help<CR>]]', opts) | ||
vim.keymap.set('n', 'gp', '[[<CMD>Lspsaga preview_defenition<CR>]]', opts) | ||
vim.keymap.set('n', 'gr', '[[<CMD>Lspsaga rename]]', opts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters