<commit_before>#+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
Adds many tools for [[https://nixos.org/][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
+ [[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
  + 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
| 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
+ There aren't any known problems.<commit_msg>Move nixfmt note and Keybindings to correct place<commit_after>#+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]]
  - [[#keybindings][Keybindings]]
- [[#configuration][Configuration]]
- [[#troubleshooting][Troubleshooting]]

* Description
Adds many tools for [[https://nixos.org/][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
+ [[https://github.com/NixOS/nix-mode][nix-mode]]
+ [[https://github.com/jwiegley/nix-update-el][nix-update]]

* 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.
{'fraction_non_alphanumeric': 0.18162562880593064, 'fraction_numerical': 0.004765687053216839, 'mean_word_length': 3.6355828220858895, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7191839', 'n_tokens_mistral': 1385, 'n_tokens_neox': 1286, 'n_words': 322}