Skip to content

Commit

Permalink
fix(templ): updated to AstroNvim v4
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed May 2, 2024
1 parent e01ebf1 commit f44fdf0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lua/astrocommunity/pack/templ/init.lua
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
vim.filetype.add { extension = { templ = "templ" } }
local utils = require "astrocore"

return {
{ "AstroNvim/astrocore", opts = { filetypes = { extension = { templ = "templ" } } } },
{
"nvim-treesitter/nvim-treesitter",
optional = true,
opts = function(_, opts)
-- Ensure that opts.ensure_installed exists and is a table or string "all".
if opts.ensure_installed ~= "all" then
opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "templ")
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "templ" })
end
end,
},
{
"williamboman/mason-lspconfig.nvim",
optional = true,
opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "templ") end,
opts = function(_, opts)
opts.ensure_installed = require("astrocore").list_insert_unique(opts.ensure_installed, { "templ" })
end,
},
}

0 comments on commit f44fdf0

Please sign in to comment.