-
As title. |
Beta Was this translation helpful? Give feedback.
Answered by
yutkat
Apr 13, 2023
Replies: 1 comment 1 reply
-
all packages vim.print(require("mason-registry").get_installed_package_names()) LSP only function MasonLspPackages()
local registry = require("mason-registry")
local lsp = {}
for _, pkg_info in ipairs(registry.get_installed_packages()) do
for _, type in ipairs(pkg_info.spec.categories) do
if type == "LSP" then
table.insert(lsp, pkg_info.name)
end
end
end
return lsp
end |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
TroySigX
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
all packages
LSP only