You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"ray-x/lsp_signature.nvim",
version=false,
opts= {
debug=false, -- set to true to enable debug logginglog_path=vim.fn.stdpath("cache") .."/lsp_signature.log", -- log dir when debug is on-- default is ~/.cache/nvim/lsp_signature.logverbose=false, -- show debug line numberbind=true, -- This is mandatory, otherwise border config won't get registered.-- If you want to hook lspsaga or other signature handler, pls set to falsedoc_lines=0, -- will show two lines of comment/doc(if there are more than two lines in doc, will be truncated);-- set to 0 if you DO NOT want any API comments be shown-- This setting only take effect in insert mode, it does not affect signature help in normal-- mode, 10 by defaultmax_height=10, -- max height of signature floating_windowmax_width=40, -- max_width of signature floating_window, line will be wrapped if exceed max_width-- the value need >= 40wrap=true, -- allow doc/signature text wrap inside floating_window, useful if your lsp return doc/sig is too longfloating_window=true, -- show hint in a floating window, set to false for virtual text only modefloating_window_above_cur_line=true, -- try to place the floating above the current line when possible Note:-- will set to true when fully tested, set to false will use whichever side has more space-- this setting will be helpful if you do not want the PUM and floating win overlap-- floating_window_off_x = -11, -- adjust float windows x position.floating_window_off_x=-1, -- adjust float windows x position.-- can be either a number or functionfloating_window_off_y=0, -- adjust float windows y position. e.g -2 move window up 2 lines; 2 move down 2 lines-- can be either number or function, see examplesclose_timeout=4000, -- close floating window after ms when laster parameter is enteredfix_pos=true, -- set to true, the floating window will not auto-close until finish all parametershint_enable=false, -- virtual hint enablehint_prefix="", -- Panda for parameter, NOTE: for the terminal not support emoji, might crashhint_scheme="String",
hint_inline=function()
returntrueend, -- should the hint be inline(nvim 0.10 only)? default false-- return true | 'inline' to show hint inline, return 'eol' to show hint at end of line, return false to disable-- return 'right_align' to display hint right aligned in the current linehi_parameter="LspSignatureActiveParameter", -- how your parameter will be highlighthandler_opts= {
border="rounded", -- double, rounded, single, shadow, none, or a table of borders
},
always_trigger=false, -- sometime show signature on new line or in middle of parameter can be confusing, set it to false for #58auto_close_after=0.01, -- autoclose signature float win after x sec, disabled if nil.extra_trigger_chars= {}, -- Array of extra characters that will trigger signature completion, e.g., {"(", ","}zindex=200, -- by default it will be on top of all floating windows, set to <= 50 send it to bottompadding="", -- character to pad on left and right of signature can be ' ', or '|' etctransparency=0, -- disabled by default, allow floating win transparent value 1~100shadow_blend=36, -- if you using shadow as border use this set the opacityshadow_guibg="Black", -- if you using shadow as border use this set the color e.g. 'Green' or '#121315'timer_interval=10, -- default timer check interval set to lower value if you want to reduce latencytoggle_key="<M-p>", -- toggle signature on and off in insert mode, e.g. toggle_key = '<M-x>'toggle_key_flip_floatwin_setting=true, -- true: toggle floating_windows: true|false setting after toggle key pressed-- false: floating_windows setup will not change, toggle_key will pop up signature helper, but signature-- may not popup when typing depends on floating_window settingselect_signature_key="<C-5>", -- cycle to next signature, e.g. '<M-n>' function overloadingmove_cursor_key="<f7>", -- imap, use nvim_set_current_win to move cursor between current win and floating
},
config=function(_, opts)
require("lsp_signature").setup(opts)
end,
}
iShot_2024-02-13_17.38.17.mp4
like the screenshot, If I press the toggle key once, when I release it, the signature help disappears, but it keeps flashing when I hold it still. I also don't know why it will automatically shift to left, after I press toggle key, it flickered in the right position for a moment.
The text was updated successfully, but these errors were encountered:
my config
iShot_2024-02-13_17.38.17.mp4
like the screenshot, If I press the toggle key once, when I release it, the signature help disappears, but it keeps flashing when I hold it still. I also don't know why it will automatically shift to left, after I press toggle key, it flickered in the right position for a moment.
The text was updated successfully, but these errors were encountered: