nvim-config/lua/configs/lspsaga.lua

55 lines
1.1 KiB
Lua
Raw Normal View History

2022-03-01 02:58:43 +00:00
local M = {}
function M.config()
local status_ok, lspsaga = pcall(require, "lspsaga")
if not status_ok then
return
end
lspsaga.setup {
debug = false,
use_saga_diagnostic_sign = false,
-- Diagnostics
error_sign = "",
warn_sign = "",
hint_sign = "",
infor_sign = "",
diagnostic_header_icon = "",
-- Code actions
code_action_icon = "",
code_action_prompt = {
2022-03-01 07:42:54 +00:00
enable = false,
--sign = false, -- this thing is ultra annoying
--sign_priority = 40,
--virtual_text = false,
2022-03-01 02:58:43 +00:00
},
finder_definition_icon = "",
finder_reference_icon = "",
2022-03-01 07:42:54 +00:00
max_preview_lines = 40,
2022-03-01 02:58:43 +00:00
finder_action_keys = {
open = "o",
vsplit = "s",
split = "i",
quit = "q",
scroll_down = "<C-f>",
scroll_up = "<C-b>",
},
code_action_keys = {
quit = "q",
exec = "<CR>",
},
rename_action_keys = {
quit = "<C-c>",
exec = "<CR>",
},
definition_preview_icon = "",
border_style = "round",
rename_prompt_prefix = "",
server_filetype_map = {},
diagnostic_prefix_format = "%d. ",
}
end
return M