readme: runtimepath before setup call

This commit is contained in:
Gaetan Lepage 2023-01-13 09:35:04 +01:00 committed by Christian Clason
parent 7e4a7c4508
commit 368b4d48d4

View file

@ -415,13 +415,14 @@ This directory must be writeable and must be explicitly added to the
`runtimepath`. For example:
``` lua
vim.opt.runtimepath:append("/some/path/to/store/parsers")
require'nvim-treesitter.configs'.setup {
parser_install_dir = "/some/path/to/store/parsers",
...
}
vim.opt.runtimepath:append("/some/path/to/store/parsers")
```
If this option is not included in the setup options, or is explicitly set to