Skip to content

Commit

Permalink
feat(pack): add prisma language pack (#111)
Browse files Browse the repository at this point in the history
* feat(pack): add prisma language pack

Signed-off-by: Miguel Casqueira <[email protected]>

* Update lua/astrocommunity/pack/prisma/prisma.lua

Co-authored-by: Micah Halter <[email protected]>

---------

Signed-off-by: Miguel Casqueira <[email protected]>
Co-authored-by: Miguel Casqueira <[email protected]>
Co-authored-by: Kai Löhnert <[email protected]>
Co-authored-by: Micah Halter <[email protected]>
  • Loading branch information
4 people authored Apr 2, 2023
1 parent d41f4ae commit 3c6e863
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/astrocommunity/pack/prisma/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# prisma Language Pack

This plugin pack does the following:

- Adds `prisma` Treesitter parser
- Adds `prismals` language servers
23 changes: 23 additions & 0 deletions lua/astrocommunity/pack/prisma/prisma.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
local utils = require "astrocommunity.utils"
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
-- Ensure that opts.ensure_installed exists and is a table or string "all".
if not opts.ensure_installed then
opts.ensure_installed = {}
elseif opts.ensure_installed == "all" then
return
end
utils.list_insert_unique(opts.ensure_installed, "prisma")
end,
},
{
"williamboman/mason-lspconfig.nvim",
opts = function(_, opts)
-- Ensure that opts.ensure_installed exists and is a table
if not opts.ensure_installed then opts.ensure_installed = {} end
utils.list_insert_unique(opts.ensure_installed, "prismals")
end,
},
}

0 comments on commit 3c6e863

Please sign in to comment.