aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDuncan McDougall <dncn.mcdougall@gmail.com>2022-06-20 21:50:07 +0100
committerGitHub <noreply@github.com>2022-06-20 22:50:07 +0200
commit901ffe1a363f21c168eacf011dce4f905fd26d5f (patch)
tree49f905970eff9ce1ebefa797798909ea1229cde9 /doc
parentUpdate lockfile.json (diff)
downloadnvim-treesitter-901ffe1a363f21c168eacf011dce4f905fd26d5f.tar
nvim-treesitter-901ffe1a363f21c168eacf011dce4f905fd26d5f.tar.gz
nvim-treesitter-901ffe1a363f21c168eacf011dce4f905fd26d5f.tar.bz2
nvim-treesitter-901ffe1a363f21c168eacf011dce4f905fd26d5f.tar.lz
nvim-treesitter-901ffe1a363f21c168eacf011dce4f905fd26d5f.tar.xz
nvim-treesitter-901ffe1a363f21c168eacf011dce4f905fd26d5f.tar.zst
nvim-treesitter-901ffe1a363f21c168eacf011dce4f905fd26d5f.zip
Add support for custom parser install locations #2959 (#3031)
Diffstat (limited to 'doc')
-rw-r--r--doc/nvim-treesitter.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/nvim-treesitter.txt b/doc/nvim-treesitter.txt
index 52553fb0e..e870ab352 100644
--- a/doc/nvim-treesitter.txt
+++ b/doc/nvim-treesitter.txt
@@ -39,6 +39,12 @@ To enable supported features, put this in your `init.lua` file:
>
require'nvim-treesitter.configs'.setup {
+ -- A directory to install the parsers into.
+ -- If this is excluded or nil parsers are installed
+ -- to either the package dir, or the "site" dir.
+ -- If a custom path is used (not nil) it must be added to the runtimepath.
+ parser_install_dir = "/some/path/to/store/parsers",
+
-- A list of parser names, or "all"
ensure_installed = { "c", "lua", "rust" },
@@ -62,6 +68,7 @@ To enable supported features, put this in your `init.lua` file:
additional_vim_regex_highlighting = false,
},
}
+ vim.opt.runtimepath:append("/some/path/to/store/parsers")
<
See |nvim-treesitter-modules| for a list of all available modules and its options.