feat(javascript) add ejs syntax highlighting and npm package version info
This commit is contained in:
@@ -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,
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user