diff --git a/lua/astrocommunity/pack/gleam/init.lua b/lua/astrocommunity/pack/gleam/init.lua index b2d511c62..0337b30fc 100644 --- a/lua/astrocommunity/pack/gleam/init.lua +++ b/lua/astrocommunity/pack/gleam/init.lua @@ -8,16 +8,11 @@ return { end, }, { - "williamboman/mason-lspconfig.nvim", + "AstroNvim/astrolsp", opts = function(_, opts) - opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "gleam" }) - end, - }, - { - "WhoIsSethDaniel/mason-tool-installer.nvim", - optional = true, - opts = function(_, opts) - opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "gleam" }) + if vim.fn.executable "gleam" == 1 then + opts.servers = require("astrocore").list_insert_unique(opts.servers, { "gleam" }) + end end, }, }