-
-
Notifications
You must be signed in to change notification settings - Fork 213
/
sleuth.nix
40 lines (35 loc) · 940 Bytes
/
sleuth.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{
config,
lib,
helpers,
pkgs,
...
}:
helpers.vim-plugin.mkVimPlugin config {
name = "sleuth";
originalName = "vim-sleuth";
defaultPackage = pkgs.vimPlugins.vim-sleuth;
globalPrefix = "sleuth_";
maintainers = [ lib.maintainers.GaetanLepage ];
settingsOptions = {
heuristics = helpers.defaultNullOpts.mkBool true ''
Whether to enable/disable heuristics by default.
You can also disable heuristics for individual filetypes:
```nix
settings = {
heuristics = true;
gitcommit_heuristics = false;
};
```
'';
no_filetype_indent_on = helpers.defaultNullOpts.mkBool false ''
Sleuth forces `|:filetype-indent-on|` by default, which enables file-type specific indenting
algorithms and is highly recommended.
'';
};
settingsExample = {
heuristics = true;
gitcommit_heuristics = false;
no_filetype_indent_on = true;
};
}