35 lines
1.1 KiB
Lua
35 lines
1.1 KiB
Lua
-- Highlight, edit, and navigate code
|
|
return {
|
|
'nvim-treesitter/nvim-treesitter',
|
|
build = ':TSUpdate',
|
|
branch = 'main',
|
|
-- [[ Configure Treesitter ]] See `:help nvim-treesitter`
|
|
config = function()
|
|
require('nvim-treesitter').setup {}
|
|
require('nvim-treesitter').install {
|
|
'bash',
|
|
'c',
|
|
'diff',
|
|
'html',
|
|
'lua',
|
|
'luadoc',
|
|
'markdown',
|
|
'markdown_inline',
|
|
'query',
|
|
'vim',
|
|
'vimdoc',
|
|
'php',
|
|
'javascript',
|
|
'typescript',
|
|
'json',
|
|
}
|
|
end,
|
|
opts = {},
|
|
-- 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
|
|
}
|