nvim-config/lua/configs/lspsaga.lua

54 lines
1.1 KiB
Lua
Raw Normal View History

2022-03-01 02:58:43 +00:00
local M = {}
function M.config()
2023-01-10 18:21:09 +00:00
local status_ok, lspsaga = pcall(require, 'lspsaga')
2022-03-01 02:58:43 +00:00
if not status_ok then
return
end
2023-01-10 18:21:09 +00:00
lspsaga.setup({
2022-03-01 02:58:43 +00:00
debug = false,
use_saga_diagnostic_sign = false,
-- Diagnostics
2023-01-10 18:21:09 +00:00
error_sign = '',
warn_sign = '',
hint_sign = '',
infor_sign = '',
diagnostic_header_icon = '',
2022-03-01 02:58:43 +00:00
-- Code actions
2023-01-10 18:21:09 +00:00
code_action_icon = '',
2022-03-01 02:58:43 +00:00
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
},
2023-01-10 18:21:09 +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 = {
2023-01-10 18:21:09 +00:00
open = 'o',
vsplit = 's',
split = 'i',
quit = 'q',
scroll_down = '<C-f>',
scroll_up = '<C-b>',
2022-03-01 02:58:43 +00:00
},
code_action_keys = {
2023-01-10 18:21:09 +00:00
quit = 'q',
exec = '<CR>',
2022-03-01 02:58:43 +00:00
},
rename_action_keys = {
2023-01-10 18:21:09 +00:00
quit = '<C-c>',
exec = '<CR>',
2022-03-01 02:58:43 +00:00
},
2023-01-10 18:21:09 +00:00
definition_preview_icon = '',
border_style = 'round',
rename_prompt_prefix = '',
2022-03-01 02:58:43 +00:00
server_filetype_map = {},
2023-01-10 18:21:09 +00:00
diagnostic_prefix_format = '%d. ',
})
2022-03-01 02:58:43 +00:00
end
return M