doomemacs/modules/lang/nix
Henrik Lissner 1abcf913aa
revert: fix(docs): set mode in file-local vars
emacs-straight/org-mode@e22b4eb7aa introduced a breaking change that
made it impossible to rely on .dir-locals.el to change org-mode buffers
in $EMACSDIR to doom-docs-org-mode (without infinite recursion), so we
used file-local variables in 7e400ab.

emacs-straight/org-mode@215de6176b reverted that change, so we can use
.dir-locals.el again, and this is my preference, since it requires less
boilerplate across our hundreds of org files.

Ref: emacs-straight/org-mode@215de6176b
Ref: emacs-straight/org-mode@e22b4eb7aa
Revert: 7e400abdc0
2022-08-07 19:08:07 +02:00
..
autoload.el feat(nix): add generic completing-read support to +nix/lookup-option 2022-06-18 17:22:47 +02:00
config.el refactor(:lang): move tree-sitter init 2022-07-25 17:34:44 +02:00
doctor.el docs(tree-sitter): add doc checks for langs 2022-06-17 20:08:42 +01:00
packages.el bump: :lang 2022-03-31 21:09:38 +02:00
README.org revert: fix(docs): set mode in file-local vars 2022-08-07 19:08:07 +02:00

:lang nix

Description   unfold

This module adds support for the Nix language to Doom Emacs, along with tools for managing Nix(OS).

Includes:

  • Syntax highlighting
  • Completion through company and/or helm
  • Nix option lookup
  • Formatting (nixfmt)

Module flags

+tree-sitter
Leverages tree-sitter for better syntax highlighting and structural text editing. Requires :tools tree-sitter.

Hacks

No hacks documented for this module.

TODO Changelog

This module does not have a changelog yet.

TODO Installation

Enable this module in your doom! block.

This module requires:

  • The Nix package manager, for a variety of its features (besides syntax highlighting).
  • nixfmt, for automatic formatting (requires :editor format).
  • MacOS: TODO
  • Arch Linux: TODO
  • NixOS: in pkgs.nixfmt

TODO Usage

🔨 This module's usage documentation is incomplete. Complete it?

Keybindings

Binding Description
<localleader> b nix-build
<localleader> f nix-update-fetch
<localleader> o +nix/lookup-option
<localleader> p nix-format-buffer
<localleader> r nix-repl-show
<localleader> s nix-repl-shell
<localleader> u nix-unpack

TODO Configuration

🔨 This module has no configuration documentation yet. Write some?

Troubleshooting

There are no known problems with this module. Report one?

Frequently asked questions

This module has no FAQs yet. Ask one?

TODO Appendix

🔨 This module has no appendix yet. Write one?