From 5d458bf9a4773ac77b38883b8d7736497b8251e3 Mon Sep 17 00:00:00 2001 From: Alec Goncharow Date: Wed, 10 Jan 2024 13:05:50 -0500 Subject: yaks cannot be stopped --- .config/nvim/lua/lspsaga_conf.lua | 40 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) (limited to '.config/nvim/lua/lspsaga_conf.lua') diff --git a/.config/nvim/lua/lspsaga_conf.lua b/.config/nvim/lua/lspsaga_conf.lua index dabd040..fccbda8 100644 --- a/.config/nvim/lua/lspsaga_conf.lua +++ b/.config/nvim/lua/lspsaga_conf.lua @@ -1,6 +1,9 @@ vim.g.matchup_matchparen_offscreen = { method = {} } require('lspsaga').setup({ + ui = { + border = 'none', + }, outline = { win_position = 'right', auto_preview = true, @@ -14,6 +17,43 @@ require('lspsaga').setup({ jump = 'e', }, }, + diagnostic = { + show_code_action = true, + show_layout = 'float', + show_normal_height = 10, + jump_num_shortcut = true, + max_width = 0.8, + max_height = 0.6, + max_show_width = 0.9, + max_show_height = 0.6, + text_hl_follow = true, + border_follow = true, + wrap_long_lines = true, + extend_relatedInformation = false, + diagnostic_only_current = false, + keys = { + exec_action = 'o', + quit = 'q', + toggle_or_jump = '', + quit_in_show = { 'q', '' }, + }, + }, + code_action = { + num_shortcut = true, + show_server_name = false, + extend_gitsigns = true, + only_in_cursor = false, + max_height = 0.3, + keys = { + quit = { 'q', '' }, + exec = '', + }, + }, }) Nmap('', ':Lspsaga outline') +Nmap('', ':Lspsaga show_buf_diagnostics') +Nmap('', ':Lspsaga code_action') + + +Nmap('t', ':Lspsaga term_toggle') -- cgit v1.2.3-70-g09d2