Files
keycodex/lua/plugins/nvim-treesitter.lua
T
2024-08-14 14:40:31 +05:45

36 lines
880 B
Lua

return {
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate',
dependencies = {
'windwp/nvim-ts-autotag',
},
event = { 'BufReadPre', 'BufNewFile' },
config = function()
local configs = require('nvim-treesitter.configs')
configs.setup({
ensure_installed = {
'c',
'lua',
'vim',
'vimdoc',
'python',
'cpp',
'html',
'css',
'javascript',
'typescript',
'json',
'php',
'markdown',
'markdown_inline',
'bash',
'java',
},
sync_install = true,
highlight = { enable = true },
indent = { enable = true },
})
end,
}