2022-10-17 14:40:36 -04:00
|
|
|
-- import lspsaga safely
|
|
|
|
local saga_status, saga = pcall(require, "lspsaga")
|
|
|
|
if not saga_status then
|
2022-11-05 17:13:18 -04:00
|
|
|
return
|
2022-10-17 14:40:36 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
saga.init_lsp_saga({
|
2022-11-05 17:13:18 -04:00
|
|
|
-- keybinds for navigation in lspsaga window
|
2022-11-09 12:12:30 -04:00
|
|
|
move_in_saga = { prev = "<C-k>", next = "<C-j>" },
|
2022-11-05 17:13:18 -04: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 14:40:36 -04:00
|
|
|
})
|