Skip to content

Commit a107b54

Browse files
committed
languages/wgsl: add example to lsp.package option
1 parent a7c7851 commit a107b54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/plugins/languages/wgsl.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
inherit (lib.modules) mkIf mkMerge;
1010
inherit (lib.nvim.lua) expToLua;
1111
inherit (lib.nvim.types) mkGrammarOption;
12-
inherit (lib.options) mkEnableOption mkOption;
12+
inherit (lib.options) literalExpression mkEnableOption mkOption;
1313
inherit (lib.types) either enum listOf package str;
1414

1515
cfg = config.vim.languages.wgsl;
@@ -52,6 +52,7 @@ in {
5252

5353
package = mkOption {
5454
description = "wgsl-analyzer package, or the command to run as a list of strings";
55+
example = literalExpression "[(lib.getExe pkgs.wgsl-analyzer)]";
5556
type = either package (listOf str);
5657
default = pkgs.wgsl-analyzer;
5758
};

0 commit comments

Comments
 (0)