初始化dotfiles
This commit is contained in:
31
nvim/lua/plugins/treesitter.lua
Normal file
31
nvim/lua/plugins/treesitter.lua
Normal file
@ -0,0 +1,31 @@
|
||||
-- ============================================================================
|
||||
-- 语法高亮 (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 },
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user