aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/platform.lua
blob: 7c754e455689d47e247fb32119b0c71941468919 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
local M = {}

local uname = vim.loop.os_uname()

local arch_aliases = {
    ["x86_64"] = "x64",
}

M.arch = arch_aliases[uname.machine] or uname.machine

M.is_win = vim.fn.has "win32" == 1
M.is_unix = vim.fn.has "unix" == 1
M.is_mac = vim.fn.has "mac" == 1

-- PATH separator
M.path_sep = M.is_win and ";" or ":"

return M