aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorSeb Tomasini <sebt@qgates.com>2024-03-31 10:37:53 +0100
committerGitHub <noreply@github.com>2024-03-31 11:37:53 +0200
commitff797254282b56d98849f6fa1082f3b2f99ebe43 (patch)
tree7070ac5e0bb5c8448b375096747b323104501585 /lua
parentfeat(snakemake): add indentation queries (diff)
downloadnvim-treesitter-ff797254282b56d98849f6fa1082f3b2f99ebe43.tar
nvim-treesitter-ff797254282b56d98849f6fa1082f3b2f99ebe43.tar.gz
nvim-treesitter-ff797254282b56d98849f6fa1082f3b2f99ebe43.tar.bz2
nvim-treesitter-ff797254282b56d98849f6fa1082f3b2f99ebe43.tar.lz
nvim-treesitter-ff797254282b56d98849f6fa1082f3b2f99ebe43.tar.xz
nvim-treesitter-ff797254282b56d98849f6fa1082f3b2f99ebe43.tar.zst
nvim-treesitter-ff797254282b56d98849f6fa1082f3b2f99ebe43.zip
fix(uninstall): use correct path separator on windows (#6369)
Diffstat (limited to 'lua')
-rw-r--r--lua/nvim-treesitter/install.lua2
1 files changed, 2 insertions, 0 deletions
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(