feat: language aliases for markdown codeblocks

This commit is contained in:
Guz
2024-12-23 16:56:25 -03:00
parent 0a629334f4
commit e439f557c4

View File

@@ -94,8 +94,17 @@ return {
lint_events = { "BugWrite", "CursorHold" },
},
})
local LANGUAGE_ALIASES = {
{ from = "dataviewjs", to = "javascript" },
{ from = "js", to = "javascript" },
{ from = "ts", to = "typescript" },
}
for _, v in pairs(LANGUAGE_ALIASES) do
vim.treesitter.language.register(v.to, v.from)
end
end,
},
{ "nvim-treesitter-textobjects", dep_of = { "nvim-treesitter" } },
{ "nvim-treesitter-textobjects", dep_of = { "nvim-treesitter" } },
{ "nvim-treesitter-textsubjects", dep_of = { "nvim-treesitter" } },
}