Add new config
This commit is contained in:
17
lua/plugins/treesitter.lua
Normal file
17
lua/plugins/treesitter.lua
Normal file
@@ -0,0 +1,17 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user