feat: language aliases for markdown codeblocks
This commit is contained in:
@@ -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" } },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user