ray-x / lsp_signature.nvim

LSP signature hint as you type
Apache License 2.0
1.98k stars 53 forks source link

Parameter highlighting temporary #307

Open drusmanbashir opened 5 months ago

drusmanbashir commented 5 months ago

Hi Thank you for the great plugin. When I move cursor among arguments and toggle lsp-signature, the active parameter is highlighted for half a second only. I pullled the latest version of the plugin just now but problem is still here.

The gif below shows this:

Screencast from 12-02-24 01:47:00.webm

My config:

cfg = {
  debug = true,
  verbose = true,
  floating_window = false,
  hint_enable = false,
  handler_opts = {
    border = "single",
  },

  debug = true, -- set to true to enable debug logging
  log_path = vim.fn.stdpath("cache") .. "/lsp_signature.log", -- log dir when debug is on

  bind = true, -- This is mandatory, otherwise border config won't get registered.
  --              -- If you want to hook lspsaga or other signature handler, pls set to false
  doc_lines = 10, -- will show two lines of comment/doc(if there are more than two lines in doc, will be truncated);

  hi_parameter = "LspSignatureActiveParameter", -- how your parameter will be highlight

  auto_close_after = nil, -- autoclose signature float win after x sec, disabled if nil.

  toggle_key = '<M-;>',
  select_signature_key='<M-n>' ,
}
local status_ok, signature= pcall(require, "lsp_signature")
if not status_ok then
  print("LSP signature not loaded")
  return
end

signature.setup(cfg) 
polyzen commented 4 months ago

Seems to be a duplicate of #302