lsp_signature.nvim icon indicating copy to clipboard operation
lsp_signature.nvim copied to clipboard

Popup closes on last parameter

Open hood opened this issue 4 years ago • 1 comments

I'm having a strange problem: the popup containing function signature hints stays open while I'm typing for all parameters but the last one. Last one gets closed as soon as I insert a character.

Excerpt from my config:

lua << EOF
  local custom_on_attach = function (client)
    require'lsp_signature'.on_attach()
  end

  require'lspconfig'.tsserver.setup{ on_attach = custom_on_attach }
EOF

lua << EOF
  require "lsp_signature".setup({
    bind = true, -- This is mandatory, otherwise border config won't get registered.
    handler_opts = {
      border = "rounded"
    }
  })
EOF

hood avatar Jul 21 '21 21:07 hood

Yes. This behaviour is by design. It is more a balance between auto close virtual text and work together with autopair plugins insert ). I will think about it to see if there is a better way to handle this.

ray-x avatar Jul 21 '21 22:07 ray-x