fix(uninstall): use correct path separator on windows (#6369)

This commit is contained in:
Seb Tomasini 2024-03-31 10:37:53 +01:00 committed by GitHub
parent 6e0b031ebb
commit ff79725428
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -526,6 +526,7 @@ local function install(options)
if err then
return api.nvim_err_writeln(err)
end
install_folder = install_folder and clean_path(install_folder)
assert(install_folder)
local languages ---@type string[]
@ -621,6 +622,7 @@ function M.uninstall(...)
if err then
return api.nvim_err_writeln(err)
end
install_dir = install_dir and clean_path(install_dir)
if vim.tbl_contains(ensure_installed_parsers, lang) then
vim.notify(