-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
No completion available in flakes #567
Comments
Seems to be an unimplemented feature. |
Ah right, I just stumbled upon https://github.com/nix-community/nixd/blob/2.3.0/nixd/docs/features.md. I did not understand that |
Note that https://www.reddit.com/r/NixOS/s/Tsp4msODn3 is claiming that these features are in fact implemented, just to provide context about where I'm coming from. |
Currently only some idioms in Nix language are implemented. So it can be expected that nixd cannot deal with the general case (at least for now). I'd like to reopen this issue because the reporting is valid and maybe we'd like to have this feature in the future. |
I noticed this in my VsCode as well; my project is flake based and it only seems to go to definition of where it's declared in my flake not any further. |
Describe the bug
Inside Neovim, I am not seeing any relevant completion, or even hover information, while editing a flake.
I do see LSP progress events emitted by
nixd
(below), but no relevant LSP feature seems to be functional.# lsp progress nixd [evaluating nixpkgs entries] nixd [evaluating nixos options] nixd [evaluating nixpkgs entries] evaluated nixpkgs entries nixd [evaluating nixos options] evaluated nixos options
Logs (Required)
Configuration
None (nvim-lspconfig's default)
To Reproduce
Open a Nix shell that includes the
nixd
package from Nixpkgs:$ nix shell 'nixpkgs#nixd'
Add the following line to Neovim's
init.lua
, assuming that theneovim/nvim-lspconfig
plugin is installed:Open the following
flake.nix
at https://github.com/antoineco/dotfiles/blob/ae64add/nix/flakes/shells/go in Neovim.Attempt to complete something from the
nixpkgs
input variable, or to hover an attribute from it.Expected behavior
inputs
andoutputs
attributes.Screenshots
Example: no completion of
nixpkgs.outputs.lib
ornixpkgs.outputs.legacyPackages
:Additional context
-
The text was updated successfully, but these errors were encountered: