mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 09:18:38 +02:00
plugins: fix "int flag" style options
This commit is contained in:
parent
555035ef79
commit
ec61ca9b08
27 changed files with 168 additions and 168 deletions
|
@ -12,27 +12,27 @@ helpers.vim-plugin.mkVimPlugin {
|
|||
maintainers = [ lib.maintainers.GaetanLepage ];
|
||||
|
||||
settingsOptions = {
|
||||
heuristics = helpers.defaultNullOpts.mkBool true ''
|
||||
heuristics = helpers.defaultNullOpts.mkFlagInt 1 ''
|
||||
Whether to enable/disable heuristics by default.
|
||||
|
||||
You can also disable heuristics for individual filetypes:
|
||||
```nix
|
||||
settings = {
|
||||
heuristics = true;
|
||||
gitcommit_heuristics = false;
|
||||
heuristics = 1;
|
||||
gitcommit_heuristics = 0;
|
||||
};
|
||||
```
|
||||
'';
|
||||
|
||||
no_filetype_indent_on = helpers.defaultNullOpts.mkBool false ''
|
||||
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 = true;
|
||||
gitcommit_heuristics = false;
|
||||
no_filetype_indent_on = true;
|
||||
heuristics = 1;
|
||||
gitcommit_heuristics = 0;
|
||||
no_filetype_indent_on = 1;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue