mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
fix(config): prepend install_dir to rtp
This commit is contained in:
parent
0d60a09252
commit
c1dfc39285
2 changed files with 2 additions and 2 deletions
|
|
@ -100,7 +100,7 @@ setup({opts}) *nvim-treesitter.setup()*
|
|||
• {opts} `(table?)` Optional parameters:
|
||||
• {install_dir} (`string?`, default `stdpath('data')/site/`)
|
||||
directory to install parsers and queries to. Note: will be
|
||||
appended to |runtimepath|.
|
||||
prepended to |runtimepath|.
|
||||
|
||||
install({languages} [, {opts}]) *nvim-treesitter.install()*
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ function M.setup(user_data)
|
|||
if user_data then
|
||||
if user_data.install_dir then
|
||||
user_data.install_dir = vim.fs.normalize(user_data.install_dir)
|
||||
vim.opt.runtimepath:append(user_data.install_dir)
|
||||
vim.opt.runtimepath:prepend(user_data.install_dir)
|
||||
end
|
||||
config = vim.tbl_deep_extend('force', config, user_data)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue