ray-x / lsp_signature.nvim

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

Doesn't show signature when i open only a single file, works when i open a directory #305

Closed gelerum closed 2 months ago

gelerum commented 5 months ago

When i open current directory like that nvim . it works, but it doesn't when i open a single file nvim a.py, signature is just not shown. But hover works and LSP server is enabled.

I use Lazy.nvim

NONVME commented 5 months ago

I have a similar problem

kiyoon commented 2 months ago

I had a similar problem and fixed it by removing event = VeryLazy lazy loading. Or I could use event = BufReadPre. I guess something has changed and lazy loading won't trigger the plugin.

ray-x commented 2 months ago

Correct, If lazy loaded, you have to make sure the plugin loaded before lsp client start. Otherwise, on_attach won't hook.