.dotfiles/.config/nvim/lua/nvwynd/plugins/treesitter.lua

52 lines
793 B
Lua

return {
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
local configs = require("nvim-treesitter.configs")
vim.treesitter.language.register("html", "handlebars")
configs.setup({
ensure_installed = {
-- web dev
"html",
"css",
"scss",
"javascript",
"typescript",
-- config
"toml",
"yaml",
"markdown",
"dockerfile",
-- vim
"vim",
"vimdoc",
"lua",
"query",
-- the cool stuff
"elixir",
"heex",
"rust",
"python",
"zig",
"nim",
"bash",
-- the not so cool stuff
"c",
"java",
"groovy",
},
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
end,
},
}