diff --git a/lua/astrocommunity/pack/angular/README.md b/lua/astrocommunity/pack/angular/README.md new file mode 100644 index 000000000..f021c6ff7 --- /dev/null +++ b/lua/astrocommunity/pack/angular/README.md @@ -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 diff --git a/lua/astrocommunity/pack/angular/angular.lua b/lua/astrocommunity/pack/angular/angular.lua new file mode 100644 index 000000000..6ad59045c --- /dev/null +++ b/lua/astrocommunity/pack/angular/angular.lua @@ -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, + }, +}