dev-environment-files/.config/nvim/lua/josean/plugins/lsp/lspsaga.lua

19 lines
433 B
Lua
Raw Normal View History

2022-10-17 20:40:36 +02:00
-- import lspsaga safely
local saga_status, saga = pcall(require, "lspsaga")
if not saga_status then
return
2022-10-17 20:40:36 +02:00
end
saga.init_lsp_saga({
-- keybinds for navigation in lspsaga window
move_in_saga = { prev = "<C-p>", next = "<C-n>" },
-- 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
})