2020-05-04 13:47:59 +03:00
|
|
|
#+TITLE: lang/nix
|
|
|
|
#+DATE: May 4, 2020
|
|
|
|
#+SINCE: v2.0.7
|
|
|
|
#+STARTUP: inlineimages nofold
|
|
|
|
|
|
|
|
* Table of Contents :TOC_3:noexport:
|
|
|
|
- [[#description][Description]]
|
|
|
|
- [[#maintainers][Maintainers]]
|
|
|
|
- [[#module-flags][Module Flags]]
|
|
|
|
- [[#plugins][Plugins]]
|
|
|
|
- [[#prerequisites][Prerequisites]]
|
|
|
|
- [[#features][Features]]
|
|
|
|
- [[#configuration][Configuration]]
|
|
|
|
- [[#troubleshooting][Troubleshooting]]
|
|
|
|
|
|
|
|
* Description
|
2020-05-06 19:27:10 +03:00
|
|
|
Adds many tools for [[https://nixos.org/][Nix(OS)]] users in nice package for Doom users.
|
2020-05-04 13:47:59 +03:00
|
|
|
|
2020-05-06 19:27:10 +03:00
|
|
|
+ Syntax highlighting
|
2020-05-04 13:47:59 +03:00
|
|
|
+ Completion through ~company~ / ~helm~
|
|
|
|
+ Nix option lookup
|
|
|
|
+ Formatting (~nixfmt~)
|
|
|
|
|
|
|
|
** Maintainers
|
|
|
|
This module has no dedicated maintainers.
|
|
|
|
|
|
|
|
** Module Flags
|
|
|
|
This module provides no flags.
|
|
|
|
|
|
|
|
** Plugins
|
|
|
|
+ [[https://github.com/NixOS/nix-mode][nix-mode]]
|
|
|
|
+ [[https://github.com/jwiegley/nix-update-el][nix-update]]
|
|
|
|
|
|
|
|
* Prerequisites
|
|
|
|
|
|
|
|
* Features
|
|
|
|
+ ~nixfmt~ is required to use formatting
|
2020-05-06 19:27:10 +03:00
|
|
|
+ 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.
|
2020-05-04 13:47:59 +03:00
|
|
|
|
|
|
|
* Configuration
|
|
|
|
| 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~ |
|
|
|
|
|
|
|
|
* Troubleshooting
|
2020-05-06 19:27:10 +03:00
|
|
|
+ There aren't any known problems.
|