Neovim and Treesitter are married with the nvim-treesitter plugin.
This plugin defines several modules, that handle highlighting, indenting and folding of text. There are external plugins, that extend the functionality. List
Each module can be enabled and configured in a lua file, like $DOTFILES/nvim/lua/treesitter.lua
.
Currently, only the highlighting module is enabled.
This module defines a set of highlight groups, see :h nvim-treesitter-highlights
.
These highlighting groups are linked to default vim highlight groups, see the mapping here
There are multiple colorschemes, that already set these highlight groups and therefore integrate with TreeSitter. List1 List2