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

@ -62,20 +62,20 @@ helpers.vim-plugin.mkVimPlugin {
Specifies pdf viewer that `typst watch --open` will use.
'';
conceal_math = helpers.defaultNullOpts.mkBool false ''
conceal_math = helpers.defaultNullOpts.mkFlagInt 0 ''
Enable concealment for math symbols in math mode (i.e. replaces symbols with their actual
unicode character).
Warning: this can affect performance
'';
auto_close_toc = helpers.defaultNullOpts.mkBool false ''
auto_close_toc = helpers.defaultNullOpts.mkFlagInt 0 ''
Specifies whether TOC will be automatically closed after using it.
'';
};
settingsExample = {
cmd = "typst";
conceal_math = true;
auto_close_toc = true;
conceal_math = 1;
auto_close_toc = 1;
};
}