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

39 lines
876 B
Nix
Raw Normal View History

2024-03-24 11:31:50 +01:00
{
lib,
helpers,
...
}:
helpers.vim-plugin.mkVimPlugin {
2024-03-24 11:31:50 +01:00
name = "sleuth";
originalName = "vim-sleuth";
package = "vim-sleuth";
2024-03-24 11:31:50 +01:00
globalPrefix = "sleuth_";
2024-05-05 19:39:35 +02:00
maintainers = [ lib.maintainers.GaetanLepage ];
2024-03-24 11:31:50 +01:00
settingsOptions = {
2024-09-08 13:52:18 +01:00
heuristics = helpers.defaultNullOpts.mkFlagInt 1 ''
2024-03-24 11:31:50 +01:00
Whether to enable/disable heuristics by default.
You can also disable heuristics for individual filetypes:
```nix
settings = {
2024-09-08 13:52:18 +01:00
heuristics = 1;
gitcommit_heuristics = 0;
2024-03-24 11:31:50 +01:00
};
```
'';
2024-09-08 13:52:18 +01:00
no_filetype_indent_on = helpers.defaultNullOpts.mkFlagInt 0 ''
2024-03-24 11:31:50 +01:00
Sleuth forces `|:filetype-indent-on|` by default, which enables file-type specific indenting
algorithms and is highly recommended.
'';
};
settingsExample = {
2024-09-08 13:52:18 +01:00
heuristics = 1;
gitcommit_heuristics = 0;
no_filetype_indent_on = 1;
2024-03-24 11:31:50 +01:00
};
}