mirror of
https://github.com/josean-dev/dev-environment-files.git
synced 2025-01-10 10:11:11 +01:00
19 lines
420 B
Lua
19 lines
420 B
Lua
|
-- import lspsaga safely
|
||
|
local saga_status, saga = pcall(require, "lspsaga")
|
||
|
if not saga_status then
|
||
|
return
|
||
|
end
|
||
|
|
||
|
saga.init_lsp_saga({
|
||
|
-- keybinds for navigation in lspsaga window
|
||
|
move_in_saga = { prev = "<C-k>", next = "<C-j>" },
|
||
|
-- 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>",
|
||
|
},
|
||
|
})
|