This commit is contained in:
Zelong Kuang
2025-09-21 20:43:38 +10:00
parent 9d1536e5af
commit 46c470d1f7
50 changed files with 5465 additions and 214 deletions

View File

@@ -1,36 +1,40 @@
return {
{
"nvim-treesitter/nvim-treesitter",
-- commit = "a1332a7925e5b3234a94480f77713d396ca895c1",
opts = function()
local parsers = {
"typst",
"bash",
"c",
"cpp",
"html",
"json",
"lua",
"luap",
"markdown",
"make",
"markdown_inline",
"scala",
"python",
"latex",
"query",
"toml",
"regex",
"vim",
"yaml",
}
table.insert(parsers, "latex")
return {
highlight = {
enable = true,
disable = { "latex" },
disable = { "tex, latex" },
-- additional_vim_regex_highlighting = { "markdown" },
},
-- ignore_install = { "latex" },
indent = { enable = true, disable = { "python" } },
context_commentstring = { enable = true, enable_autocmd = false },
ensure_installed = {
"latex",
"bash",
"c",
"cpp",
"html",
"json",
"lua",
"luap",
"markdown",
"make",
"markdown_inline",
"scala",
"python",
"query",
"toml",
"regex",
"vim",
"yaml",
},
ensure_installed = parsers,
incremental_selection = {
enable = true,
keymaps = {