plugins/statuslines: normalize plugin defaults

This commit is contained in:
Matt Sturgeon 2024-06-11 16:54:09 +01:00
parent 0caa5b957e
commit d7b0cf8014
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
2 changed files with 5 additions and 5 deletions

View file

@ -120,7 +120,7 @@ mkVimPlugin config {
(enum [ "flag" ]) (enum [ "flag" ])
] ]
) )
"true" true
'' ''
Display spelling language when spell detection is enabled (if enough space is Display spelling language when spell detection is enabled (if enough space is
available). available).

View file

@ -69,7 +69,7 @@ let
}; };
}; };
} }
)) "1" "Adds padding to the left and right of components."; )) 1 "Adds padding to the left and right of components.";
fmt = helpers.mkNullOrLuaFn '' fmt = helpers.mkNullOrLuaFn ''
A lua function to format the component string. A lua function to format the component string.
@ -129,16 +129,16 @@ in
}; };
disabledFiletypes = { disabledFiletypes = {
statusline = helpers.defaultNullOpts.mkNullable (with types; listOf str) "[]" '' statusline = helpers.defaultNullOpts.mkListOf types.str [ ] ''
Only ignores the ft for statusline. Only ignores the ft for statusline.
''; '';
winbar = helpers.defaultNullOpts.mkNullable (with types; listOf str) "[]" '' winbar = helpers.defaultNullOpts.mkListOf types.str [ ] ''
Only ignores the ft for winbar. Only ignores the ft for winbar.
''; '';
}; };
ignoreFocus = helpers.defaultNullOpts.mkNullable (types.listOf types.str) "[]" '' ignoreFocus = helpers.defaultNullOpts.mkListOf types.str [ ] ''
If current filetype is in this list it'll always be drawn as inactive statusline and the If current filetype is in this list it'll always be drawn as inactive statusline and the
last window will be drawn as active statusline. last window will be drawn as active statusline.