mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/utils: move to by-name
This commit is contained in:
parent
faff32b9f1
commit
52f125679f
195 changed files with 2 additions and 102 deletions
38
plugins/by-name/sleuth/default.nix
Normal file
38
plugins/by-name/sleuth/default.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue