mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 00:25:47 +02:00
30 lines
710 B
Lua
30 lines
710 B
Lua
|
return {
|
||
|
{
|
||
|
"nvim-treesitter",
|
||
|
opts = function(_, opts)
|
||
|
if type(opts.ensure_installed) == "table" then
|
||
|
vim.list_extend(opts.ensure_installed, { "angular", "scss", "typescript" })
|
||
|
end
|
||
|
vim.api.nvim_create_autocmd({ "BufReadPost", "BufNewFile" }, {
|
||
|
pattern = { "*.component.html", "*.container.html" },
|
||
|
callback = function()
|
||
|
vim.treesitter.start(nil, "angular")
|
||
|
end,
|
||
|
})
|
||
|
end,
|
||
|
},
|
||
|
{
|
||
|
"williamboman/mason-lspconfig.nvim",
|
||
|
opts = function(_, opts)
|
||
|
opts.ensure_installed = opts.ensure_installed or {}
|
||
|
vim.list_extend(opts.ensure_installed, { "angularls", "ts_ls" })
|
||
|
end,
|
||
|
},
|
||
|
{
|
||
|
"williamboman/mason.nvim",
|
||
|
opts = {
|
||
|
ensure_installed = { "prettier" },
|
||
|
},
|
||
|
},
|
||
|
}
|