plugins/utils: move to by-name

This commit is contained in:
Matt Sturgeon 2024-09-04 17:14:16 +01:00
parent faff32b9f1
commit 52f125679f
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
195 changed files with 2 additions and 102 deletions

View file

@ -0,0 +1,38 @@
{
lib,
helpers,
...
}:
helpers.vim-plugin.mkVimPlugin {
name = "sleuth";
originalName = "vim-sleuth";
package = "vim-sleuth";
globalPrefix = "sleuth_";
maintainers = [ lib.maintainers.GaetanLepage ];
settingsOptions = {
heuristics = helpers.defaultNullOpts.mkFlagInt 1 ''
Whether to enable/disable heuristics by default.
You can also disable heuristics for individual filetypes:
```nix
settings = {
heuristics = 1;
gitcommit_heuristics = 0;
};
```
'';
no_filetype_indent_on = helpers.defaultNullOpts.mkFlagInt 0 ''
Sleuth forces `|:filetype-indent-on|` by default, which enables file-type specific indenting
algorithms and is highly recommended.
'';
};
settingsExample = {
heuristics = 1;
gitcommit_heuristics = 0;
no_filetype_indent_on = 1;
};
}