nvim-config/lua/configs/treesitter.lua
2024-03-19 17:57:47 -07:00

27 lines
453 B
Lua

local function config()
local treesitter_configs = require('nvim-treesitter.configs')
treesitter_configs.setup({
ensure_installed = {
'lua',
'python',
'javascript',
'typescript',
'tsx',
'json',
'yaml',
'sql',
'rust',
'c',
'cpp',
'java',
'make',
'hcl', -- terraform
},
highlight = { enable = true, disable = {} },
indent = { enable = true, disable = { 'html', 'typescript' } },
})
end
return config