Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter highlighting temporary #307

Open
drusmanbashir opened this issue Feb 12, 2024 · 1 comment
Open

Parameter highlighting temporary #307

drusmanbashir opened this issue Feb 12, 2024 · 1 comment

Comments

@drusmanbashir
Copy link

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
Copy link

polyzen commented Feb 20, 2024

Seems to be a duplicate of #302

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants