Open antoineco opened 3 months ago
As an additional information, I am observing the same behaviour using the output of github:nix-community/nixd#nvim
(nvim-lsp
command) in a development shell:
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 nixd
was only providing inlay hints and semantic highlights. Sorry for the noise!
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.
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.Logs (Required)
Configuration
None (nvim-lspconfig's default)
To Reproduce
Open a Nix shell that includes the
nixd
package from Nixpkgs: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
-