mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 12:06:55 -04:00
utils: respect shellslash setting
Use '/' as path separator on Windows when shellslash is set.
This commit is contained in:
parent
07ff07ae4c
commit
6ed8a41bd5
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ end
|
|||
-- Returns the system specific path seperator.
|
||||
---@return string
|
||||
function M.get_path_sep()
|
||||
return fn.has "win32" == 1 and "\\" or "/"
|
||||
return (fn.has "win32" == 1 and not vim.opt.shellslash:get()) and "\\" or "/"
|
||||
end
|
||||
|
||||
-- Returns a function that joins the given arguments with separator. Arguments
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue