2022-10-17 20:40:36 +02:00
|
|
|
-- import lspsaga safely
|
|
|
|
local saga_status, saga = pcall(require, "lspsaga")
|
|
|
|
if not saga_status then
|
2022-11-05 22:13:18 +01:00
|
|
|
return
|
2022-10-17 20:40:36 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
saga.init_lsp_saga({
|
2022-11-05 22:13:18 +01:00
|
|
|
-- keybinds for navigation in lspsaga window
|
2022-11-09 17:12:30 +01:00
|
|
|
move_in_saga = { prev = "<C-k>", next = "<C-j>" },
|
2022-11-05 22:13:18 +01:00
|
|
|
-- use enter to open file with finder
|
|
|
|
finder_action_keys = {
|
|
|
|
open = "<CR>",
|
|
|
|
},
|
|
|
|
-- use enter to open file with definition preview
|
|
|
|
definition_action_keys = {
|
|
|
|
edit = "<CR>",
|
|
|
|
},
|
2022-10-17 20:40:36 +02:00
|
|
|
})
|