setup(opts)
Configure installation options for nvim-treesitter. This function should be called before any installation operations if you want to customize the installation directory.You only need to call
setup() if you want to set non-default options. The plugin works out of the box with sensible defaults.Parameters
Configuration options table
Returns
This function does not return a value.Usage
Default Configuration
By default, parsers and queries are installed to:Implementation Details
The setup function performs the following operations:- Normalizes the provided
install_dirpath - Prepends the directory to Neovim’s
runtimepath - Merges user configuration with default settings using deep extend