25 lines
650 B
Lua
25 lines
650 B
Lua
-- import lspsaga safely
|
|
-- local saga_status, saga = pcall(require, "lspsaga")
|
|
-- if not saga_status then
|
|
-- return
|
|
-- end
|
|
require("lazy").setup({
|
|
"glepnir/lspsaga.nvim",
|
|
event = "BufRead",
|
|
config = function()
|
|
require("lspsaga").setup({})
|
|
end,
|
|
dependencies = { { "nvim-tree/nvim-web-devicons" } },
|
|
-- 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>",
|
|
},
|
|
})
|
|
|