diff options
| author | Stephan Seitz <stephan.seitz@fau.de> | 2020-09-28 17:29:48 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2020-09-28 17:40:34 +0200 |
| commit | b66b533ecdf40524176020cff514c0597c99df0b (patch) | |
| tree | 38a4b1bf62c818cf5077b235539828b5c78bfcd9 /lua/nvim-treesitter/install.lua | |
| parent | 0e37148dd1fca58cfb8b7c314176f913ed298f42 (diff) | |
chore: dedup join_paths <-> join_path
Diffstat (limited to 'lua/nvim-treesitter/install.lua')
| -rw-r--r-- | lua/nvim-treesitter/install.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index 61612f45..ebb0b14f 100644 --- a/lua/nvim-treesitter/install.lua +++ b/lua/nvim-treesitter/install.lua @@ -32,7 +32,7 @@ end local function get_revision(lang) if #lockfile == 0 then - lockfile = vim.fn.json_decode(vim.fn.readfile(utils.join_paths(utils.get_package_path(), 'lockfile.json'))) + lockfile = vim.fn.json_decode(vim.fn.readfile(utils.join_path(utils.get_package_path(), 'lockfile.json'))) end return (lockfile[lang] and lockfile[lang].revision) end @@ -217,7 +217,7 @@ local function select_download_commands(repo, project_name, cache_folder, revisi }, }, select_rm_file_cmd(cache_folder..path_sep..project_name..".zip"), - select_mv_cmd(utils.join_paths(project_name..'-tmp', repo.url:match('[^/]-$')..'-'..revision), + select_mv_cmd(utils.join_path(project_name..'-tmp', repo.url:match('[^/]-$')..'-'..revision), project_name, cache_folder), select_install_rm_cmd(cache_folder, project_name..'-tmp') @@ -403,7 +403,7 @@ function M.write_lockfile(verbose) print(vim.inspect(lockfile)) end vim.fn.writefile(vim.fn.split(vim.fn.json_encode(lockfile), '\n'), - utils.join_paths(utils.get_package_path(), "lockfile.json")) + utils.join_path(utils.get_package_path(), "lockfile.json")) end M.ensure_installed = install(false, false) |
