From ff797254282b56d98849f6fa1082f3b2f99ebe43 Mon Sep 17 00:00:00 2001 From: Seb Tomasini Date: Sun, 31 Mar 2024 10:37:53 +0100 Subject: fix(uninstall): use correct path separator on windows (#6369) --- lua/nvim-treesitter/install.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lua') diff --git a/lua/nvim-treesitter/install.lua b/lua/nvim-treesitter/install.lua index 0a7a9ae3d..1f2bd7b16 100644 --- a/lua/nvim-treesitter/install.lua +++ b/lua/nvim-treesitter/install.lua @@ -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( -- cgit v1.2.3-70-g09d2