2022-10-17 20:40:36 +02:00
|
|
|
-- import lspsaga safely
|
|
|
|
local saga_status, saga = pcall(require, "lspsaga")
|
|
|
|
if not saga_status then
|
2022-11-05 22:13:18 +01:00
|
|
|
return
|
2022-10-17 20:40:36 +02:00
|
|
|
end
|
|
|
|
|
2023-01-15 14:28:40 +01:00
|
|
|
saga.setup({
|
2022-11-05 22:13:18 +01:00
|
|
|
-- keybinds for navigation in lspsaga window
|
2023-01-15 14:28:40 +01:00
|
|
|
scroll_preview = { scroll_down = "<C-f>", scroll_up = "<C-b>" },
|
2022-11-05 22:13:18 +01:00
|
|
|
-- use enter to open file with definition preview
|
2023-01-15 14:28:40 +01:00
|
|
|
definition = {
|
2022-11-05 22:13:18 +01:00
|
|
|
edit = "<CR>",
|
|
|
|
},
|
2023-01-15 16:15:53 +01:00
|
|
|
ui = {
|
|
|
|
colors = {
|
|
|
|
normal_bg = "#022746",
|
|
|
|
},
|
|
|
|
},
|
2022-10-17 20:40:36 +02:00
|
|
|
})
|