plugins/lsp: normalize plugin defaults

This commit is contained in:
Matt Sturgeon 2024-06-11 16:53:12 +01:00
parent 6f408f2bd0
commit 0f07201a0c
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
10 changed files with 205 additions and 199 deletions

View file

@ -50,7 +50,7 @@ with lib;
If set to null or not set, the extension will use the default behavior of the Typst compiler.
'';
fontPaths = helpers.defaultNullOpts.mkListOf types.str "[]" ''
fontPaths = helpers.defaultNullOpts.mkListOf types.str [ ] ''
Font paths, which doesn't allow for dynamic configuration.
Note: you can use vscode variables in the path, e.g. `$\{workspaceFolder}/fonts`.
'';
@ -69,7 +69,7 @@ with lib;
server level.
'';
typstExtraArgs = helpers.defaultNullOpts.mkListOf types.str "[]" ''
typstExtraArgs = helpers.defaultNullOpts.mkListOf types.str [ ] ''
You can pass any arguments as you like, and we will try to follow behaviors of the
**same version** of typst-cli.