mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-24 05:21:07 +00:00
test: fix mason in extra tests
This commit is contained in:
parent
80a980ab00
commit
d44f8bf317
1 changed files with 7 additions and 0 deletions
|
|
@ -26,8 +26,15 @@ describe("Extra", function()
|
||||||
return not vim.tbl_contains(ignore, extra.modname)
|
return not vim.tbl_contains(ignore, extra.modname)
|
||||||
end, extras)
|
end, extras)
|
||||||
|
|
||||||
|
require("mason").setup()
|
||||||
|
local mr = require("mason-registry")
|
||||||
|
mr.refresh()
|
||||||
|
|
||||||
local lsp_to_pkg = {}
|
local lsp_to_pkg = {}
|
||||||
lsp_to_pkg = require("mason-lspconfig.mappings").get_mason_map().lspconfig_to_package
|
lsp_to_pkg = require("mason-lspconfig.mappings").get_mason_map().lspconfig_to_package
|
||||||
|
it("can get lspconfig to package map", function()
|
||||||
|
assert(not vim.tbl_isempty(lsp_to_pkg), "Could not get lspconfig to package map")
|
||||||
|
end)
|
||||||
|
|
||||||
local tsspec = Plugin.Spec.new({
|
local tsspec = Plugin.Spec.new({
|
||||||
import = "lazyvim.plugins.treesitter",
|
import = "lazyvim.plugins.treesitter",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue