From 368b4d48d467b6fa661526a4f3b249019ee80629 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 13 Jan 2023 09:35:04 +0100 Subject: [PATCH] readme: runtimepath before setup call --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2ae077af4..e7f5c371d 100644 --- a/README.md +++ b/README.md @@ -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