Files
neovim-config/lua/taken/plugins/treesitter.lua
2024-09-28 21:00:38 +02:00

39 lines
1003 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",
"html",
"python",
"java",
"json",
"regex",
"bash",
"markdown",
"markdown_inline",
},
sync_install = false,
auto_install = true,
indent = { enable = true },
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
})
end,
}