dev-environment-files/.config/nvim/lua/josean/plugins/lsp/lspsaga.lua
2022-10-17 14:40:36 -04:00

18 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>",
},
})