-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtreesitter.lua
More file actions
25 lines (24 loc) · 837 Bytes
/
Copy pathtreesitter.lua
File metadata and controls
25 lines (24 loc) · 837 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
return {
"nvim-treesitter/nvim-treesitter",
build = function()
require("nvim-treesitter.install").update({ with_sync = true })()
end,
event = { "BufReadPost", "BufNewFile" },
config = function()
require("nvim-treesitter.configs").setup({
ensure_installed = { "lua", "javascript", "typescript", "html", "css" }, -- Sesuaikan dengan kebutuhan
sync_install = false,
auto_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
indent = { enable = true },
rainbow = {
enable = true, -- Untuk pewarnaan parentheses
extended_mode = true, -- Juga untuk tanda kurung siku dan kurawal
max_file_lines = 1000,
},
})
end,
}