mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 08:35:43 +02:00
41 lines
940 B
Nix
41 lines
940 B
Nix
|
{
|
||
|
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;
|
||
|
};
|
||
|
}
|