aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/install.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua
index 37f32fe53..3ea23ee86 100644
--- a/lua/nvim-treesitter/install.lua
+++ b/lua/nvim-treesitter/install.lua
@@ -330,6 +330,9 @@ local function run_install(cache_folder, install_folder, lang, repo, with_sync,
local compile_location
if from_local_path then
compile_location = repo.url
+ if repo.location then
+ compile_location = utils.join_path(compile_location, repo.location)
+ end
else
local repo_location = project_name
if repo.location then