mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-03-10 09:27:25 +00:00
test: fix mason in extra tests
This commit is contained in:
@@ -26,8 +26,15 @@ describe("Extra", function()
|
||||
return not vim.tbl_contains(ignore, extra.modname)
|
||||
end, extras)
|
||||
|
||||
require("mason").setup()
|
||||
local mr = require("mason-registry")
|
||||
mr.refresh()
|
||||
|
||||
local lsp_to_pkg = {}
|
||||
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({
|
||||
import = "lazyvim.plugins.treesitter",
|
||||
|
||||
Reference in New Issue
Block a user