Files
lazy_config/lua/plugins/treesitter.lua
2025-04-26 20:18:28 -04:00

30 lines
579 B
Lua

local os_info = require("os_info")
if not os_info.is_linux then
require("nvim-treesitter.install").compilers = { "zig" }
end
require("nvim-treesitter.install").prefer_git = false
return {
{
"nvim-treesitter/nvim-treesitter",
build = function() end,
opts = {
highlight = { enable = true },
indent = { enable = true },
ensure_installed = {
-- from extras -> python
"python",
"ninja",
"rst",
"lua",
--
"toml",
"json",
"html",
--
"ruby"
},
},
},
}