mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08:00
1.8 KiB
1.8 KiB
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.
Plugins
Prerequisites
-
nixfmtis 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
- If you have Nix(OS) installed it can be installed through Nix configuration
:editor formatformat-allalso supportsnixfmtso you can use that also to format Nix code, default binding isSPC c fin 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.