From 7dbf51f11cbc8990a7328d24bf519907a84372e8 Mon Sep 17 00:00:00 2001 From: amatrelan Date: Wed, 6 May 2020 22:14:38 +0300 Subject: [PATCH] Move nixfmt note and Keybindings to correct place --- modules/lang/nix/README.org | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/lang/nix/README.org b/modules/lang/nix/README.org index ef3e702d5..64f3d1ef3 100644 --- a/modules/lang/nix/README.org +++ b/modules/lang/nix/README.org @@ -10,6 +10,7 @@ - [[#plugins][Plugins]] - [[#prerequisites][Prerequisites]] - [[#features][Features]] + - [[#keybindings][Keybindings]] - [[#configuration][Configuration]] - [[#troubleshooting][Troubleshooting]] @@ -32,15 +33,14 @@ This module provides no flags. + [[https://github.com/jwiegley/nix-update-el][nix-update]] * Prerequisites - -* Features + ~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. -* Configuration +* Features +** Keybindings | Binding | Description | |-------------------+----------------------| | ~ b~ | ~nix-build~ | @@ -51,5 +51,7 @@ This module provides no flags. | ~ s~ | ~nix-repl-shell~ | | ~ u~ | ~nix-unpack~ | +* Configuration + * Troubleshooting + There aren't any known problems.