From 85781f40a5c796292fd75acec83f4ed520177264 Mon Sep 17 00:00:00 2001 From: taskylizard <75871323+taskylizard@users.noreply.github.com> Date: Thu, 21 Dec 2023 01:03:50 +0530 Subject: [PATCH] feat(pack): gleam pack (#689) feat(packs): gleam pack forgot to add readme :^) --- lua/astrocommunity/pack/gleam/README.md | 6 ++++++ lua/astrocommunity/pack/gleam/init.lua | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 lua/astrocommunity/pack/gleam/README.md create mode 100644 lua/astrocommunity/pack/gleam/init.lua diff --git a/lua/astrocommunity/pack/gleam/README.md b/lua/astrocommunity/pack/gleam/README.md new file mode 100644 index 000000000..ae977f1cd --- /dev/null +++ b/lua/astrocommunity/pack/gleam/README.md @@ -0,0 +1,6 @@ +# Gleam Language Pack + +This plugin pack does the following: + +- Adds `gleam` Treesitter parser +- Adds `gleam` language server diff --git a/lua/astrocommunity/pack/gleam/init.lua b/lua/astrocommunity/pack/gleam/init.lua new file mode 100644 index 000000000..2eacc193a --- /dev/null +++ b/lua/astrocommunity/pack/gleam/init.lua @@ -0,0 +1,16 @@ +local utils = require "astronvim.utils" + +return { + { + "nvim-treesitter/nvim-treesitter", + opts = function(_, opts) + if opts.ensure_installed ~= "all" then + opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, { "gleam" }) + end + end, + }, + { + "williamboman/mason-lspconfig.nvim", + opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, { "gleam" }) end, + }, +}