From 8686fad0db309a0f83d4bff6d06d48b9d4a81ff0 Mon Sep 17 00:00:00 2001 From: taskylizard <75871323+taskylizard@users.noreply.github.com> Date: Wed, 20 Dec 2023 19:15:19 +0000 Subject: [PATCH] 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, + }, +}