You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error detected while processing LspAttach Autocommands for "*":
Error executing lua callback: ...farzadmf/.local/share/nvim/lazy/krust.nvim/lua/krust.lua:34: attempt to index field 'cmd' (a function value)
stack traceback:
...farzadmf/.local/share/nvim/lazy/krust.nvim/lua/krust.lua:34: in function 'start'
.../share/nvim/lazy/amazonq.nvim/lua/amazonq/completion.lua:121: in function 'start'
....local/share/nvim/lazy/amazonq.nvim/lua/amazonq/init.lua:137: in function <....local/share/nvim/lazy/amazonq.nvim/lua/amazonq/init.lua:130>
[C]: in function 'nvim_exec_autocmds'
.../neovim/0.11.5/share/nvim/runtime/lua/vim/lsp/client.lua:1025: in function 'on_attach'
.../neovim/0.11.5/share/nvim/runtime/lua/vim/lsp/client.lua:575: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
Steps To Reproduce
Nothing much to add here, basically:
Open a Rust file
Expected Behavior
The plugin seems to be working fine (I think) despite the error, so it would be nice not to get it in the first place (eg, silence the error) ... or better yet, fix it so that it doesn't happen 🙂
Activity
alexpasmantier commentedon Dec 4, 2025
Hi, thanks for the report.
Would you mind checking out #3 and see if that solves your issue?
Thanks
alexpasmantier commentedon Dec 4, 2025
PS: you'll need to point to the local copy of the repository after cloning it:
farzadmf commentedon Dec 4, 2025
Hey @alexpasmantier ; thank you for your reply
I just checked out
branch = 'error-lsp-attach', and I don't get the error anymore!alexpasmantier commentedon Dec 4, 2025
Great, thanks for trying that out!
Closing this issue then 🎉
farzadmf commentedon Dec 4, 2025
Great, thank you for taking care of this; I love how this shows the error; it helps me a lot personally.
I saw on Reddit that some people were a bit on the mean side, but thank you for the plugin; it is very useful for me