local T = require('toolchain') local M = {} function M.setup() T.add_highlighter_autoinstalls('angular') T.add_null_ls_module(function(null_ls) return { -- Diagnostics null_ls.builtins.diagnostics.stylelint, -- Formatter null_ls.builtins.formatting.prettier.with({ command = 'prettierd', }), } end) T.add_lsp_autoinstalls('angularls') T.add_lsps(function(lspconfig, capabilities) local config = { capabilities = capabilities } lspconfig.html.setup(config) lspconfig.emmet_ls.setup(config) lspconfig.cssls.setup(config) lspconfig.tailwindcss.setup(config) lspconfig.ts_ls.setup(config) lspconfig.eslint.setup(config) end) T.add_plugins({ 'joeveiga/ng.nvim', config = function() local opts = { noremap = true, silent = true } local ng = require('ng') vim.keymap.set( 'n', 'at', ng.goto_template_for_component, opts ) vim.keymap.set( 'n', 'ac', ng.goto_component_with_template_file, opts ) vim.keymap.set('n', 'aT', ng.get_template_tcb, opts) end, }) end return M