Snapshot release 2023-04-03
Features
-
Code actions about string rewriting. (#69)
quote_attrandunquote_attrto quote/unquote attributes in
attrset or let-in.rewrite_string_to_indentedandrewrite_indented_to_stringto
rewrite between two string styles.rewrite_uri_to_stringto rewrite deprecated URI literals into
strings.
-
Completion for NixOS options.
This requires a working Flake setup, which has an input named
nixpkgsfor 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
niland its version (if any)
to the client throughserverInfoduring 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.nixwhenrec { ... }is used in top-level.