mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +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
|
@ -15,8 +15,8 @@ helpers.vim-plugin.mkVimPlugin {
|
|||
maintainers = [ helpers.maintainers.alisonjenkins ];
|
||||
|
||||
settingsOptions = {
|
||||
direnv_auto = helpers.defaultNullOpts.mkBool true ''
|
||||
It will not execute :DirenvExport automatically if the value is false. Default: true.
|
||||
direnv_auto = helpers.defaultNullOpts.mkFlagInt 1 ''
|
||||
It will not execute `:DirenvExport` automatically if the value is `0`.
|
||||
'';
|
||||
|
||||
direnv_edit_mode =
|
||||
|
@ -32,8 +32,8 @@ helpers.vim-plugin.mkVimPlugin {
|
|||
Select the command to open buffers to edit. Default: 'edit'.
|
||||
'';
|
||||
|
||||
direnv_silent_load = helpers.defaultNullOpts.mkBool true ''
|
||||
Stop echoing output from Direnv command. Default: true
|
||||
direnv_silent_load = helpers.defaultNullOpts.mkFlagInt 1 ''
|
||||
Stop echoing output from Direnv command.
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ mkVimPlugin {
|
|||
|
||||
height = helpers.mkNullOrOption types.ints.unsigned "height";
|
||||
|
||||
linenr = helpers.defaultNullOpts.mkBool false ''
|
||||
linenr = helpers.defaultNullOpts.mkFlagInt 0 ''
|
||||
Show line numbers when in Goyo mode.
|
||||
'';
|
||||
};
|
||||
|
|
|
@ -28,14 +28,14 @@ helpers.vim-plugin.mkVimPlugin {
|
|||
maintainers = [ maintainers.GaetanLepage ];
|
||||
|
||||
settingsOptions = {
|
||||
no_default_key_mappings = helpers.defaultNullOpts.mkBool false ''
|
||||
no_default_key_mappings = helpers.defaultNullOpts.mkFlagInt 0 ''
|
||||
Whether to disable the default mappings.
|
||||
'';
|
||||
};
|
||||
|
||||
settingsExample = {
|
||||
no_default_key_mappings = true;
|
||||
no_tex_ftplugin = true;
|
||||
no_vim_ftplugin = true;
|
||||
no_default_key_mappings = 1;
|
||||
no_tex_ftplugin = 1;
|
||||
no_vim_ftplugin = 1;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -79,14 +79,14 @@ helpers.vim-plugin.mkVimPlugin {
|
|||
2: `:wall` (write all buffers)
|
||||
'';
|
||||
|
||||
disable_when_zoomed = helpers.defaultNullOpts.mkBool false ''
|
||||
disable_when_zoomed = helpers.defaultNullOpts.mkFlagInt 0 ''
|
||||
By default, if you zoom the tmux pane running vim and then attempt to navigate "past" the edge of the vim session, tmux will unzoom the pane.
|
||||
This is the default tmux behavior, but may be confusing if you've become accustomed to navigation "wrapping" around the sides due to this plugin.
|
||||
|
||||
This option disables the unzooming behavior, keeping all navigation within vim until the tmux pane is explicitly unzoomed.
|
||||
'';
|
||||
|
||||
preserve_zoom = helpers.defaultNullOpts.mkBool false ''
|
||||
preserve_zoom = helpers.defaultNullOpts.mkFlagInt 0 ''
|
||||
As noted in `disable_when_zoomed`, navigating from a vim pane to another tmux pane normally causes the window to be unzoomed.
|
||||
Some users may prefer the behavior of tmux's `-Z` option to `select-pane`, which keeps the window zoomed if it was zoomed.
|
||||
|
||||
|
@ -95,7 +95,7 @@ helpers.vim-plugin.mkVimPlugin {
|
|||
Naturally, if `disable_when_zoomed` is enabled, this option will have no effect.
|
||||
'';
|
||||
|
||||
no_wrap = helpers.defaultNullOpts.mkBool false ''
|
||||
no_wrap = helpers.defaultNullOpts.mkFlagInt 0 ''
|
||||
By default, if you try to move past the edge of the screen, tmux/vim will "wrap" around to the opposite side.
|
||||
|
||||
This option disables "wrapping" in vim, but tmux will need to be configured separately.
|
||||
|
@ -118,7 +118,7 @@ helpers.vim-plugin.mkVimPlugin {
|
|||
```
|
||||
'';
|
||||
|
||||
no_mappings = helpers.defaultNullOpts.mkBool false ''
|
||||
no_mappings = helpers.defaultNullOpts.mkFlagInt 0 ''
|
||||
By default `<C-h>`, `<C-j>`, `<C-k>`, `<C-l>`, & `<C-\\>`
|
||||
are mapped to navigating left, down, up, right, & previous, respectively.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue