From b6beeed30e616810063599df8d50c1790868be6d Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Tue, 19 Mar 2024 12:13:48 -0400 Subject: [PATCH] fix(gleam): move to manual gleam setup rather than mason based beacuse deprecation --- lua/astrocommunity/pack/gleam/init.lua | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) 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, }, }