nix-mode
nix-mode copied to clipboard
An Emacs major mode for editing Nix expressions.
Try: ```nix if x then y else z ``` The y and z will not get indented by one, instead they will be on the same line as if and...
Some sort of completion will be useful for Nix users. Right now we have asynchronous completion through nix-repl.el but this only works if you have something like Company installed. Some...
https://github.com/jwiegley/nix-update-el/blob/master/nix-update.el It’s a wrapper around the `nix-prefetch-*`-scripts, which helps update nix expressions.
Minimal example (not broken here on GH): ```nix { foo = "woot/*"; bar = '' woot/* ''; baz = "hello"; } ``` In latest nix-mode you will see that highlighting...
It's hard to predict when something is a "shell script" in Nix. Perhaps we can base it off of the variable name? RE example: ```re ^\s*((?:pre|post)(?:Unpack|Patch|Configure|Build|Check|Install|Fixup|Dist)|(?:unpack|patch|configure|build|check|install|fixup|dist)Phase)\s*=\s*'' ```
For the similar reasons as laid out in #14, completions are only provided if the file loaded in the current buffer is a set (which means rarely) and then only...
Bumps [cachix/install-nix-action](https://github.com/cachix/install-nix-action) from 17 to 18. Release notes Sourced from cachix/install-nix-action's releases. install-nix-action-v18 Fix nodejs warnings & simplify maintenance Use python3 when determining number of cores Collapse installer log messages...
Emacs 29.0.50 doesn't seem happy about nix-mode usage of `point`: ``` Warning: 'point' is an obsolete generalized variable; use 'goto-char' instead. ```
`''${foo}` is handled correctly, but `''$FOO` is not. Simple example: `` let foo = '' hi ''$FOO ''; in { a = 3; } ``
Hello! The new RFC 166 imposes some rules on Nix formatting. Maybe it can interest you: https://github.com/NixOS/rfcs/pull/166