nix-community.nixvim/plugins/utils/sleuth.nix

40 lines
923 B
Nix
Raw Normal View History

2024-03-24 11:31:50 +01:00
{
lib,
helpers,
pkgs,
...
}:
helpers.vim-plugin.mkVimPlugin {
2024-03-24 11:31:50 +01:00
name = "sleuth";
originalName = "vim-sleuth";
defaultPackage = pkgs.vimPlugins.vim-sleuth;
globalPrefix = "sleuth_";
2024-05-05 19:39:35 +02:00
maintainers = [ lib.maintainers.GaetanLepage ];
2024-03-24 11:31:50 +01:00
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;
};
}