Branch main was renamed to master.

Files
dotfiles/nvim/lua/plugins/treesitter.lua
2026-06-18 11:36:12 +08:00

32 lines
1022 B
Lua

-- ============================================================================
-- 语法高亮 (Tree-sitter)
-- ============================================================================
return {
{
"nvim-treesitter/nvim-treesitter",
event = { "BufReadPre", "BufNewFile" },
build = ":TSUpdate",
opts = {
ensure_installed = {
"lua", -- Lua
"bash", -- Bash
"rust", -- Rust
"c", -- C
"cpp", -- C++
"cmake", -- CMake
"python", -- Python
"java", -- Java
"go", -- Go
"json", -- JSON
"toml", -- TOML
"markdown", -- Markdown
"regex", -- 正则
"vim", -- Vimscript
},
highlight = { enable = true },
indent = { enable = true },
},
},
}