1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
return {
"nvim-treesitter/nvim-treesitter",
branch = "main",
lazy = false,
build = ":TSUpdate",
config = function()
local treesitter = require("nvim-treesitter")
treesitter.install({ "python", "go", "zig", "markdown", "json", "yaml", "javascript", "typescript", "bash", "python",
"lua" })
vim.api.nvim_create_autocmd("FileType", {
group = vim.api.nvim_create_augroup("treesitter-start", { clear = true }),
callback = function()
pcall(vim.treesitter.start)
end
})
end
}
|