local cfg = {
bind = true, -- mandatory
-- doc_lines = 60,
floating_window = true, -- show hint in a floating window, set to false for virtual text only mode
-- floating_window_above_cur_line = true, -- try to place the floating above the current line when possible Note:
fix_pos = true, -- set to true, the floating window will not auto-close until finish all parameters
hint_enable = false, -- virtual hint enable
-- hint_prefix = "🐼 ", -- Panda for parameter
-- hint_scheme = "String",
-- use_lspsaga = false, -- set to true if you want to use lspsaga popup
hi_parameter = "LspSignatureActiveParameter", -- how your parameter will be highlight
-- max_height = 60, -- max height of signature floating_window, if content is more than max_height, you can scroll down
-- to view the hiding contents
max_width = 140, -- max_width of signature floating_window, line will be wrapped if exceed max_width
max_height = 140,
transpancy = 10, -- set this value if you want the floating windows to be transpant (100 fully transpant), nil to disable(default)
handler_opts = {
border = "single" -- double, single, shadow, none
},
}
require'lsp_signature'.setup(cfg)
Sometimes:
Other times:
Often times, the shorter signature will come up first, flashing for a brief second before the taller signature replaces it.
Sometimes: Other times: Often times, the shorter signature will come up first, flashing for a brief second before the taller signature replaces it.