plugins: fix "int flag" style options

This commit is contained in:
Matt Sturgeon 2024-09-08 13:52:18 +01:00
parent 555035ef79
commit ec61ca9b08
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
27 changed files with 168 additions and 168 deletions

View file

@ -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.