mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
fix(lsp): correctly check for windows in lsp logger (#14954)
This commit is contained in:
parent
3de7017d9d
commit
0b64d5ecd1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user