Command completion doesn't work
Code editor
neovim
Platform
Linux
Version
5.6.0
What steps will reproduce the bug?
- os: nixos (25.11.20250731.8679b16 (Xantusia))
- neovim lsp config: https://github.com/neovim/nvim-lspconfig/blob/5a49a97f9d3de5c39a2b18d583035285b3640cb0/lsp/bashls.lua#L12-L29
How often does it reproduce? Is there a required condition?
All the time
What is the expected behavior?
Complete for native executables.
What do you see instead?
No completion for native commands Only shell builtins would appear in completion
Additional information
I didn't know bashls can complete commands until I saw https://github.com/bash-lsp/bash-language-server/pull/294.
Not sure whether related but, nixos neither use pkg-config or install bash-completion under /usr/shared, so this might not work: https://github.com/bash-lsp/bash-language-server/blob/d5311433c6500669ef413f28efccbb02d5bb842b/server/src/get-options.sh#L4-L19
And I guess it's because bashls does not search on /home/<user>/.nix-profile/bin(shouldn't it search on $PATH?)
Some executables under /bin are presented in completion.
I didn't know that either! 🤯
Specifically for me, completing a command works (e.g. find) with documentation, but the arguments don't complete. I can reproduce this in both Zed and Helix.
I suspect the problem is that #1328 is missing from the current release.
@skovhus Any chance you could trigger a new release build?