dotfiles/.config/nvim/lua/config/plugins/languages/treesitter.lua

42 lines
1,007 B
Lua
Raw Normal View History

2025-04-29 07:38:49 +05:00
return {
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate',
main = 'nvim-treesitter.configs', -- Sets main module to use for opts
opts = {
ensure_installed = {
'bash',
'c',
2025-06-26 19:57:04 +05:00
'cpp',
'diff',
'html',
'css',
'lua',
'luadoc',
'markdown',
'markdown_inline',
'query',
'vim',
'vimdoc',
'rust',
'python',
'htmldjango',
'r',
'dart',
'javascript',
'typescript',
'tsx',
2025-06-26 19:57:04 +05:00
'regex',
'kotlin'
2025-04-29 07:38:49 +05:00
},
auto_install = false,
highlight = { enable = true, },
2025-04-29 07:38:49 +05:00
indent = { enable = true },
},
-- There are additional nvim-treesitter modules that you can use to interact
-- with nvim-treesitter. You should go explore a few and see what interests you:
--
-- - Incremental selection: Included, see `:help nvim-treesitter-incremental-selection-mod`
-- - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context
-- - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects
}