diff options
| author | William Boman <william@redwill.se> | 2021-08-14 23:19:23 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2021-08-15 00:47:15 +0200 |
| commit | d8f4f30463fcfc4b8b60811dbe195aba86917966 (patch) | |
| tree | c6a004cb1a08921184f7b5d85721e9144f20aa00 /lua/nvim-lsp-installer/path.lua | |
| parent | add `env` option to shell.raw, and other cosmetic improvements (diff) | |
| download | mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.gz mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.bz2 mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.lz mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.xz mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.tar.zst mason-d8f4f30463fcfc4b8b60811dbe195aba86917966.zip | |
stylua
Diffstat (limited to 'lua/nvim-lsp-installer/path.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/path.lua | 22 |
1 files changed, 11 insertions, 11 deletions
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) |
