ray-x / lsp_signature.nvim

LSP signature hint as you type
Apache License 2.0
2.02k stars 57 forks source link

Inconsistent signature height #224

Open quantum-booty opened 1 year ago

quantum-booty commented 1 year ago
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: image Other times: image Often times, the shorter signature will come up first, flashing for a brief second before the taller signature replaces it.

ray-x commented 1 year ago

Do you have multiple lsp server running in background? What is shows with LspInfo?

quantum-booty commented 1 year ago

Yes I have both pyright and copilot running: image