fix(lsp): correctly check for windows in lsp logger (#14954)

This commit is contained in:
Oliver Marriott 2021-07-11 04:11:33 +10:00 committed by GitHub
parent 3de7017d9d
commit 0b64d5ecd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,7 +17,7 @@ local current_log_level = log.levels.WARN
local log_date_format = "%FT%H:%M:%S%z"
do
local path_sep = vim.loop.os_uname().sysname == "Windows" and "\\" or "/"
local path_sep = vim.loop.os_uname().version:match("Windows") and "\\" or "/"
--@private
local function path_join(...)
return table.concat(vim.tbl_flatten{...}, path_sep)