tjdevries/nlua.nvim

Better detection for platform OS

mhartington opened this issue · 2 comments

Since lua LSP has predictable platforms it builds to, you could do a conditional check and set the bin location

local bin_location = jit.os

if jit.os == 'osx' then 
  local bin_location = 'macOS'
elseif jit.os == 'linux' then --or what ever the value returned by linux
    local bin_location = 'Linux'
....

Just some ideas

This is what I do in my pr! Please note that the macOS jit.os value is in uppercase. Not "osx", but "OSX".