mirror of
https://github.com/chenasraf/nvim-treesitter.git
synced 2026-05-18 01:39:00 +00:00
fix(config): prepend install_dir to rtp
This commit is contained in:
committed by
Christian Clason
parent
0d60a09252
commit
c1dfc39285
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user