Move nixfmt note and Keybindings to correct place

This commit is contained in:
amatrelan 2020-05-06 22:14:38 +03:00
parent 9219d25746
commit 7dbf51f11c

View file

@ -10,6 +10,7 @@
- [[#plugins][Plugins]] - [[#plugins][Plugins]]
- [[#prerequisites][Prerequisites]] - [[#prerequisites][Prerequisites]]
- [[#features][Features]] - [[#features][Features]]
- [[#keybindings][Keybindings]]
- [[#configuration][Configuration]] - [[#configuration][Configuration]]
- [[#troubleshooting][Troubleshooting]] - [[#troubleshooting][Troubleshooting]]
@ -32,15 +33,14 @@ This module provides no flags.
+ [[https://github.com/jwiegley/nix-update-el][nix-update]] + [[https://github.com/jwiegley/nix-update-el][nix-update]]
* Prerequisites * Prerequisites
* Features
+ ~nixfmt~ is required to use formatting + ~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) + 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-env ~nix-env -iA nixpkgs.nixfmt~
+ Or through nix-shell ~nix-shell -f https://github.com/serokell/nixfmt/archive/master.tar.gz -i~ + 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. + ~: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 | | Binding | Description |
|-------------------+----------------------| |-------------------+----------------------|
| ~<localleader> b~ | ~nix-build~ | | ~<localleader> b~ | ~nix-build~ |
@ -51,5 +51,7 @@ This module provides no flags.
| ~<localleader> s~ | ~nix-repl-shell~ | | ~<localleader> s~ | ~nix-repl-shell~ |
| ~<localleader> u~ | ~nix-unpack~ | | ~<localleader> u~ | ~nix-unpack~ |
* Configuration
* Troubleshooting * Troubleshooting
+ There aren't any known problems. + There aren't any known problems.