Files
neovim-config/lua/taken/plugins/treesitter.lua
Taken 9556024c93 Added types
Signed-off-by: Taken <taken@mairimashita.org>
2024-03-17 16:34:11 +01:00

38 lines
994 B
Lua

--- @type LazyPluginSpec
return {
"nvim-treesitter/nvim-treesitter",
event = { "BufReadPre", "BufNewFile" },
build = ":TSUpdate",
dependencies = { "nvim-treesitter/nvim-treesitter-textobjects" },
config = function()
local treesitter = require("nvim-treesitter.configs")
treesitter.setup({
ensure_installed = {
"lua",
"vim",
"vimdoc",
"javascript",
"jsdoc",
"typescript",
"java",
"json",
"regex",
"bash",
"markdown",
"markdown_inline",
},
sync_install = false,
auto_install = true,
indent = { enable = true },
autotag = { enable = true },
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
})
end,
}