doomemacs/modules/lang/nix
Henrik Lissner a70e634ebd
refactor(:lang): move tree-sitter init
Moved add-hook calls (for tree-sitter initialization) into their
respective modes' config blocks, or nearby, to be consistent with how
other, similar tools (like lsp!) are initialized, and does so at
runtime, rather than at expansion/compile time, which eval-when! caused.
2022-07-25 17:34:44 +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 Move nixfmt note and Keybindings to correct place 2020-05-06 22:14:38 +03:00

lang/nix

Description

Adds many tools for Nix(OS) users in nice package for Doom users.

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

Maintainers

This module has no dedicated maintainers.

Module Flags

This module provides no flags.

Prerequisites

  • nixfmt is required to use formatting

    • If you have Nix(OS) installed it can be installed through Nix configuration environment.systemPackages = with pkgs; [ nixfmt ]; (recommended)
    • Or through nix-env nix-env -iA nixpkgs.nixfmt
    • Or through nix-shell nix-shell -f https://github.com/serokell/nixfmt/archive/master.tar.gz -i
  • :editor format format-all also supports nixfmt so you can use that also to format Nix code, default binding is SPC c f in evil.

Features

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

Configuration

Troubleshooting

  • There aren't any known problems.