mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 17:58:38 +02:00
lib/options: mkEnum
quote default if string
As there's only a handful of call-sites to fix, ensure all `mkEnum` defaults are passed in as the correct type (tree wide) and change `mkEnum` to now correctly render string-type defaults "quoted" (like `mkString` does).
This commit is contained in:
parent
993deb227e
commit
ff1ab1700c
3 changed files with 11 additions and 8 deletions
|
@ -129,12 +129,11 @@ mkVimPlugin config {
|
|||
'';
|
||||
|
||||
output_win_style =
|
||||
helpers.defaultNullOpts.mkEnum
|
||||
helpers.defaultNullOpts.mkEnumFirstDefault
|
||||
[
|
||||
false
|
||||
"minimal"
|
||||
]
|
||||
"false"
|
||||
''
|
||||
Value passed to the style option in `:h nvim_open_win()`.
|
||||
'';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue