From d8f4f30463fcfc4b8b60811dbe195aba86917966 Mon Sep 17 00:00:00 2001 From: William Boman Date: Sat, 14 Aug 2021 23:19:23 +0200 Subject: stylua --- lua/nvim-lsp-installer/path.lua | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'lua/nvim-lsp-installer/path.lua') diff --git a/lua/nvim-lsp-installer/path.lua b/lua/nvim-lsp-installer/path.lua index 294d45e5..97e3ed20 100644 --- a/lua/nvim-lsp-installer/path.lua +++ b/lua/nvim-lsp-installer/path.lua @@ -1,24 +1,24 @@ local uv = vim.loop local sep = (function() ----@diagnostic disable-next-line: undefined-global - if jit then ----@diagnostic disable-next-line: undefined-global - local os = string.lower(jit.os) - if os == "linux" or os == "osx" or os == "bsd" then - return "/" + ---@diagnostic disable-next-line: undefined-global + if jit then + ---@diagnostic disable-next-line: undefined-global + local os = string.lower(jit.os) + if os == "linux" or os == "osx" or os == "bsd" then + return "/" + else + return "\\" + end else - return "\\" + return package.config:sub(1, 1) end - else - return package.config:sub(1, 1) - end end)() local M = {} function M.cwd() - return uv.fs_realpath(".") + return uv.fs_realpath "." end function M.concat(path_components) -- cgit v1.2.3-70-g09d2