Files
neovim-config/lua/taken/plugins/treesitter.lua
2023-09-05 18:52:46 +02:00

20 lines
541 B
Lua

return {
"nvim-treesitter/nvim-treesitter",
event = { "BufReadPre", "BufNewFile" },
build = ":TSUpdate",
config = function()
local treesitter = require("nvim-treesitter.configs")
treesitter.setup({
ensure_installed = { "lua", "vim", "vimdoc", "javascript", "java", "json" },
sync_install = false,
auto_install = true,
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
})
end,
}