2024-03-26 11:51:53 +00:00
|
|
|
return {
|
2024-07-15 19:58:28 +00:00
|
|
|
{
|
2024-03-26 11:51:53 +00:00
|
|
|
"nvim-treesitter/nvim-treesitter",
|
|
|
|
build = ":TSUpdate",
|
2024-07-15 19:58:28 +00:00
|
|
|
dependencies = {
|
|
|
|
{
|
|
|
|
"nvim-treesitter/playground",
|
|
|
|
},
|
|
|
|
},
|
2024-03-26 11:51:53 +00:00
|
|
|
config = function()
|
2024-07-15 19:58:28 +00:00
|
|
|
require 'nvim-treesitter.install'.compilers = {'clang'}
|
2024-03-26 11:51:53 +00:00
|
|
|
local configs = require("nvim-treesitter.configs")
|
|
|
|
|
|
|
|
configs.setup({
|
2024-07-15 19:58:28 +00:00
|
|
|
playground = {
|
|
|
|
enable = true,
|
|
|
|
disable = {},
|
|
|
|
updatetime = 25,
|
|
|
|
keybindings = {
|
|
|
|
toggle_query_editor = 'o',
|
|
|
|
toggle_hl_groups = 'i',
|
|
|
|
update = 'R',
|
|
|
|
show_help = '?'
|
|
|
|
}
|
|
|
|
},
|
2024-03-26 11:51:53 +00:00
|
|
|
ensure_installed = { "c", "lua", "vim", "vimdoc", "bash" },
|
|
|
|
sync_install = false,
|
|
|
|
highlight = { enable = true },
|
|
|
|
indent = { enable = true },
|
|
|
|
})
|
|
|
|
end
|
2024-07-15 19:58:28 +00:00
|
|
|
},
|
|
|
|
}
|