add nvim-treesitter

This commit is contained in:
2023-06-05 12:37:59 -04:00
parent 299d6eeabf
commit b04aa76959
2 changed files with 34 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
local status, treesitter = pcall(require, "nvim-treesitter.configs")
if not status then
return
end
treesitter.setup({
highlight = {
enable = true,
},
indent = { enable = true },
autotag = { enable = true },
ensure_installed = {
"json",
"javascript",
"typescript",
"tsx",
"yaml",
"html",
"css",
"markdown",
"markdown_inline",
"svelte",
"graphql",
"bash",
"lua",
"vim",
"dockerfile",
"gitignore",
"gitcommit",
"python",
},
auto_install = true,
})