Skip to content

Commit

Permalink
feat(pack): gleam pack (#689)
Browse files Browse the repository at this point in the history
feat(packs): gleam pack

forgot to add readme :^)
  • Loading branch information
taskylizard authored Dec 20, 2023
1 parent 31c22b5 commit 85781f4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/astrocommunity/pack/gleam/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Gleam Language Pack

This plugin pack does the following:

- Adds `gleam` Treesitter parser
- Adds `gleam` language server
16 changes: 16 additions & 0 deletions lua/astrocommunity/pack/gleam/init.lua
Original file line number Diff line number Diff line change
@@ -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,
},
}

0 comments on commit 85781f4

Please sign in to comment.