-
-
Notifications
You must be signed in to change notification settings - Fork 295
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] nixd: Failed to decode attrset/optionComplete #2604
Comments
I wonder if this is related to the option prefix path? E.g. does it work if you use Though the fact this is an error and not just failing to find completions seems like a nixd bug that may need reporting upstream 🫠 |
with so report that upstream? |
In your config, you're using the nixvim home-manager module, but in this issue you're accessing it as a nixos module option. You'll need to access nixvim's options via your home-manager options. E.g. "(${options}.home-manager.users.type.getSubOptions []).programs.nixvim.type.getSubOptions []" or "(${options}.home-manager.users.type.getSubOptions []).programs.nixvim.type.getSubOptions [\"programs\" \"nixvim\"]" (This may also rely on nixvim's hm module being in home-manager's "shared" modules, rather than an import specific to your user) You can see how I do this with less repeated code here: https://github.com/MattSturgeon/nix-config/blob/5dd1b19bc69fa33bfc950c10083490187c3d58a2/nvim/config/lsp.nix#L24-L48 |
First of all thanks for config because in the end i wanted to use it as home-manager module but couldn't find configs how to setup
i started from this config but i couldn't find config to make it working with nixd so i add before creating issued i created branch in my config mre/nixvim_03.13.2024 where this persist and there is only |
none
unstable
unstable
Description
when starting typing
programs.nixvim.
nixd started throwing errors instead autosuggestingchecking it out more with
nix repl
((outputs.nixosConfigurations.reno.options.programs.nixvim.type.getSubOptions [])
) i thinks it breaks down withprintInitPackage
attribute (? still new to nix) because trying with multitude of word combinations i pinpoint this to attributes starting withp
and rest of them (package
,path
,performance
andplugins
) in the end were autosuggestedthere is still some chance that i setup nixd <-> nixvim badly (based on this issue)
Minimal, Reproducible Example (MRE)
my repo with MRE branch nixvim added as nixos module
EDIT affected branch
The text was updated successfully, but these errors were encountered: