doom-emacs/modules/lang/nix
2024-05-21 17:17:04 +02:00
..
autoload.el refactor: deprecate featurep! for modulep! 2022-08-14 20:43:35 +02:00
config.el nit: minor comment reformatting & revision 2024-05-21 17:17:04 +02:00
doctor.el fix(nix): make doctor check against nix-nixfmt-bin 2024-05-21 17:16:50 +02:00
packages.el bump: :lang nix 2023-07-22 16:11:34 +02:00
README.org docs(nix): mention +lsp flag 2024-05-21 17:16:18 +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:

Module flags

+tree-sitter
Leverages tree-sitter for better syntax highlighting and structural text editing. Requires doom-module::tools tree-sitter.
+lsp
Enable an LSP hook for nix-mode. Requires doom-module::tools lsp and a language server (one of either nil or rnix-lsp). You can still start a nix lsp manually without this flag, this just adds a hook to always start the lsp when loading nix-mode.

Packages

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 doom-module::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?