github oxalica/nil 2023-04-03
Snapshot release 2023-04-03

latest releases: 2024-08-06, 2023-08-09, 2023-05-09...
21 months ago

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.

Don't miss a new nil release

NewReleases is sending notifications on new releases.