mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 20:10:10 -04:00
Chore: remove prefix from parser "location" property
This was very confusing when using the location property as it always had to start with "tree-sitter-<lang>" for no real reason.
This commit is contained in:
parent
74ec4e1d5c
commit
d810c38634
2 changed files with 10 additions and 6 deletions
|
|
@ -242,7 +242,11 @@ local function run_install(cache_folder, install_folder, lang, repo, with_sync,
|
|||
if from_local_path then
|
||||
compile_location = repo.url
|
||||
else
|
||||
local repo_location = string.gsub(repo.location or project_name, "/", path_sep)
|
||||
local repo_location = project_name
|
||||
if repo.location then
|
||||
repo_location = repo_location .. "/" .. repo.location
|
||||
end
|
||||
repo_location = repo_location:gsub("/", path_sep)
|
||||
compile_location = utils.join_path(cache_folder, repo_location)
|
||||
end
|
||||
local parser_lib_name = utils.join_path(install_folder, lang) .. ".so"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue