fix(tests): set up lazy.nvim in the lsp test (#4088)

This commit is contained in:
LostNeophyte 2023-04-28 10:27:40 +02:00 committed by GitHub
parent 4cefc89506
commit 6c66357cb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 7 deletions

View file

@ -55,6 +55,7 @@ end
---@param filter { filetype: string | string[] }?: (optional) Used to filter the list of server names.
---@return string[] list of names of supported servers
function M.get_supported_servers(filter)
require("mason-registry").refresh()
local _, supported_servers = pcall(function()
return require("mason-lspconfig").get_available_servers(filter)
end)