-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
Add support for completing nixosModules.default.options #590
Comments
Please show
For example,
What is the result? |
@inclyc I have similar issues with nix-darwin. lspconfig.nixd.setup({
cmd = { "nixd" },
filetypes = { "nix" },
settings = {
nixd = {
formatting = {
command = { "nixfmt" },
},
options = {
darwin = {
expr = string.format(
'(builtins.getFlake "%s/nix").darwinConfigurations.%s.options',
vim.env.HOME,
vim.loop.os_gethostname()
),
},
},
},
},
}) The command in nix-repl generates following output:
|
Update: just found out that it works for me at top-level, but not in a module's |
Is your feature request related to a problem? Please describe.
I would like completion for a module that I am exposing from a flake.
Describe the solution you'd like
This should expose my options but it doesn't seem to (or possibly this should just work).
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: