Skip to content

Snapshot release 2023-04-03

Compare
Choose a tag to compare
@oxalica oxalica released this 03 Apr 18:23
· 169 commits to main since this release
2023-04-03

Features

  • Code actions about string rewriting. (#69)

    • quote_attr and unquote_attr to quote/unquote attributes in
      attrset or let-in.
    • rewrite_string_to_indented and rewrite_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 of github:NixOS/nixpkgs. If you have multiple nixpkgs
    in your inputs, you can create an alias inputs.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 through serverInfo 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 when rec { ... } is used in top-level.