feat(javascript) add ejs syntax highlighting and npm package version info

This commit is contained in:
Jason Ross
2026-09-22 09:50:14 -05:00
parent 96623fe417
commit 22adb837ed
3 changed files with 122 additions and 29 deletions
+18
View File
@@ -0,0 +1,18 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
vim.filetype.add({
extension = {
ejs = "ejs",
},
})
vim.treesitter.language.register("javascript", { "ejs" })
opts.ensure_installed = opts.ensure_installed or {}
if type(opts.ensure_installed) == "table" and not vim.tbl_contains(opts.ensure_installed, "javascript") then
table.insert(opts.ensure_installed, "javascript")
end
end,
},
}