Files
lazy_config/lua/plugins/treesitter.lua
2024-09-02 20:20:03 -04:00

30 lines
633 B
Lua

require("nvim-treesitter.install").compilers = { "zig" }
require("nvim-treesitter.install").prefer_git = false
return {
{
"nvim-treesitter/nvim-treesitter",
build = function()
require("nvim-treesitter.install").compilers = { "zig" }
end,
opts = {
highlight = { enable = true },
indent = { enable = true },
ensure_installed = {
-- from extras -> python
"python",
"ninja",
"rst",
"lua",
-- from extras -> go
"go",
"gomod",
"gowork",
"gosum",
"toml",
"json",
"html",
},
},
},
}