dotfiles/lua/plugins/treesitter.lua
Joshua Finch 487f874984 Massive rewrite and modularization of the existing neovim config to
break it up into multiple files and to use a maintained package manager
(lazy.nvim)
2024-02-29 21:22:09 -06:00

43 lines
1.1 KiB
Lua

return {
'nvim-treesitter/nvim-treesitter',
config = function()
require('nvim-treesitter.configs').setup {
auto_install = true,
ensure_installed = {
'c',
'c_sharp',
'comment',
'css',
'html',
'java',
'javascript',
'json',
'lua',
'python',
'query',
'rust',
'toml',
'tsx',
'typescript',
'yaml',
},
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
incremental_selection = {
enable = true,
},
indent = {
enable = true,
},
rainbow = {
enable = true,
}
}
-- require('nvim-treesitter.install').prefer_git = true
-- TSUpdate
end,
lazy = false,
}