Skip to content

Commit

Permalink
feat(pack): add thrift pack (#620)
Browse files Browse the repository at this point in the history
feat: add thrift
  • Loading branch information
chaozwn authored Oct 23, 2023
1 parent cae8e92 commit 2ffcf86
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/thrift/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Thrift language Pack

This plugin pack does the following:

- Adds `thrift` Treesitter parsers
- Adds `thriftls` language servers
16 changes: 16 additions & 0 deletions lua/astrocommunity/pack/thrift/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)
-- Ensure that opts.ensure_installed exists and is a table or string "all".
if opts.ensure_installed ~= "all" then
opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "thrift")
end
end,
},
{
"williamboman/mason-lspconfig.nvim",
opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "thriftls") end,
},
}

0 comments on commit 2ffcf86

Please sign in to comment.