Files
nvim/lua/plugins/treesitter.lua
2026-03-08 18:36:36 +01:00

18 lines
480 B
Lua

return {
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
-- On utilise pcall pour éviter de crash si le plugin n'est pas encore là
local status, ts = pcall(require, "nvim-treesitter.configs")
if not status then return end
ts.setup({
ensure_installed = { "lua", "vim", "vimdoc", "bash", "python", "c" },
highlight = { enable = true },
indent = { enable = true },
})
end
}
}