aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2023-06-13 15:58:05 +0200
committerGitHub <noreply@github.com>2023-06-13 15:58:05 +0200
commit13e26c81ff5074ee8f095a791cd37fc1cec37377 (patch)
tree3b2d62ecf6cf4abcf096be4f30c1bf5975ca95d9 /tests
parentfix(functional): strip_prefix and strip_suffix should not use patterns (#1352) (diff)
downloadmason-13e26c81ff5074ee8f095a791cd37fc1cec37377.tar
mason-13e26c81ff5074ee8f095a791cd37fc1cec37377.tar.gz
mason-13e26c81ff5074ee8f095a791cd37fc1cec37377.tar.bz2
mason-13e26c81ff5074ee8f095a791cd37fc1cec37377.tar.lz
mason-13e26c81ff5074ee8f095a791cd37fc1cec37377.tar.xz
mason-13e26c81ff5074ee8f095a791cd37fc1cec37377.tar.zst
mason-13e26c81ff5074ee8f095a791cd37fc1cec37377.zip
feat(command): improve completion for :MasonInstall (#1353)
Now also supports completing versions if completion is triggered when specifying a version, e.g. "rust-analyzer@".
Diffstat (limited to 'tests')
-rw-r--r--tests/mason/setup_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/mason/setup_spec.lua b/tests/mason/setup_spec.lua
index 3aa4d3dd..b733edd0 100644
--- a/tests/mason/setup_spec.lua
+++ b/tests/mason/setup_spec.lua
@@ -53,7 +53,7 @@ describe("mason setup", function()
bar = false,
definition = "Install one or more packages.",
nargs = "+",
- complete = "custom",
+ complete = "<Lua function>",
}(user_commands["MasonInstall"]))
assert.is_true(match.tbl_containing {
@@ -61,7 +61,7 @@ describe("mason setup", function()
bar = false,
definition = "Uninstall one or more packages.",
nargs = "+",
- complete = "custom",
+ complete = "<Lua function>",
}(user_commands["MasonUninstall"]))
assert.is_true(match.tbl_containing {