Features
-
Code actions about string rewriting. (#69)
quote_attr
andunquote_attr
to quote/unquote attributes in
attrset or let-in.rewrite_string_to_indented
andrewrite_indented_to_string
to
rewrite between two string styles.rewrite_uri_to_string
to rewrite deprecated URI literals into
strings.
-
Completion for NixOS options.
This requires a working Flake setup, which has an input named
nixpkgs
for the source of NixOS options. It must be a relatively
recent version ofgithub:NixOS/nixpkgs
. If you have multiple nixpkgs
in your inputs, you can create an aliasinputs.nixpkgs.follows = "the-input-to-use"
to select one.If it's correctly recognized and evaluated, any NixOS-module-like Nix
files will get completions and type information for NixOS options.For example:
{ ... }: { nix.settings.| # -> allowed-users, auto-optimise-store, ... }
-
The LSP server now reports server name
nil
and its version (if any)
to the client throughserverInfo
during initialization.
Fixes
- Parsing errors when
'
appears in indented strings. - Panics when a flake input is named
self
. - Unescaped identifiers and/or attributes in completions.
- Recognition of
flake.nix
whenrec { ... }
is used in top-level.