neovim/lua/plugins/treesitter.lua
Devin Haska a68ad5ac1d
feat: config refresh
The goal of this commit was to break my config into smaller, logical
chunks. I was having a hard time remembering which file contained which
plugin config.

I also took the time to clean out some plugins I added but never used,
and add an old favourite (tpope/vim-surround).
2024-09-15 20:06:33 -07:00

42 lines
668 B
Lua

return {
{
"nvim-treesitter/nvim-treesitter",
version = false,
build = ":TSUpdate",
opts = {
ensure_installed = {
"html",
"htmldjango",
"javascript",
"jsdoc",
"json",
"jsonc",
"lua",
"markdown",
"markdown_inline",
"pug",
"tsx",
"typescript",
"vim",
"vimdoc",
},
highlight = { enable = true },
indent = { enable = true },
},
config = function(_, opts)
require("nvim-treesitter.configs").setup(opts)
end,
},
{
"windwp/nvim-ts-autotag",
event = "VeryLazy",
ft = {
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"html",
},
opts = {},
},
}