-
Notifications
You must be signed in to change notification settings - Fork 109
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
bug: Signature help autocommands not getting created? #342
Comments
it would really help if you'd provide a minimal config |
Updated the original post with minimal config and more information. |
I guess there is a running condition between |
Should be fixed now. When noice loads, it will now also attach to existing buffers / lsp clients as expected |
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.9.0-dev-825+g843c9025a
Operating system/version
6.1.8-arch1-1
Describe the bug
Signature help autotrigger not working because autocommands not getting created.
I created my own LspAttach autocmd and you can see that the event is getting fired.
But somehow this does not run?
Image below shows
config.options.lsp.signature.auto_open.trigger = true
but theInsertEnter
autocommand is never created.I think the problem has to do with lazy loading.
From my testing,
When loading
noice
withevent = "VeryLazy"
, sometimes it works sometimes it doesn't.If loading
noice
withlazy = false
, it always works.I suspect that depending on startup times, there could be a scenario where the
LspAttach
event fires andnoice
has not been loaded yet?My other lsp stuff are being loaded with
event = "BufReadPre"
Steps To Reproduce
minimal.lua
nvim -u minimal.lua minimal.lua
print(
:q!
Expected Behavior
Autocommands to be created for signature help when plugin is lazy loaded.
Repro
The text was updated successfully, but these errors were encountered: