mirror of
https://github.com/d0zingcat/dotfiles.git
synced 2026-05-14 07:26:44 +00:00
13
nvim/lua/plugins/treesitter.lua
Normal file
13
nvim/lua/plugins/treesitter.lua
Normal file
@@ -0,0 +1,13 @@
|
||||
-- treesitter.lua - 语法高亮与代码结构
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = ":TSUpdate",
|
||||
event = { "BufReadPost", "BufNewFile" },
|
||||
opts = {
|
||||
ensure_installed = { "go", "python", "lua", "json", "yaml", "markdown" },
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user