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

51 lines
781 B
Lua
Raw Normal View History

2024-05-24 16:07:28 +03:00
return {
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
local configs = require("nvim-treesitter.configs")
vim.treesitter.language.register("html", "handlebars")
2024-05-24 16:07:28 +03:00
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",
"bash",
-- the not so cool stuff
"c",
"java",
"groovy",
},
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
end,
},
}