18 lines
480 B
Lua
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
|
|
}
|
|
}
|