Skip to content

Commit

Permalink
feat(pack): adds angular pack (#254)
Browse files Browse the repository at this point in the history
Co-authored-by: Axel Calixte <axelcalixte@disr.it>
  • Loading branch information
axelcalixte and Axel Calixte authored Jun 5, 2023
1 parent a6fb350 commit 5745eb0
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lua/astrocommunity/pack/angular/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Angular Language Pack

This plugin pack does the following:

- Adds [typescript pack](https://github.com/AstroNvim/astrocommunity/tree/main/lua/astrocommunity/pack/typescript)
- Adds [html-css pack](https://github.com/AstroNvim/astrocommunity/tree/main/lua/astrocommunity/pack/html-css)
- Adds `angular` Treesitter parser with [`nvim-treesitter-angular`](https://github.com/elgiano/nvim-treesitter-angular)
- Adds `angular` language servers
19 changes: 19 additions & 0 deletions lua/astrocommunity/pack/angular/angular.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
local utils = require "astronvim.utils"

return {
{ import = "astrocommunity.pack.typescript" },
{ import = "astrocommunity.pack.html-css" },
{
"nvim-treesitter/nvim-treesitter",
dependencies = { { "elgiano/nvim-treesitter-angular", branch = "topic/jsx-fix" } },
opts = function(_, opts)
if opts.ensure_installed ~= "all" then
opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "angular")
end
end,
},
{
"williamboman/mason-lspconfig.nvim",
opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "angularls") end,
},
}

0 comments on commit 5745eb0

Please sign in to comment.