Skip to content

Commit

Permalink
feat(lua): add support for BSD
Browse files Browse the repository at this point in the history
  • Loading branch information
rywng committed Nov 20, 2024
1 parent 8767bcf commit c3ee1aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/cord/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ local function init_discord(ffi)
local os_name = vim.loop.os_uname().sysname
if os_name:find('Windows', 1, true) == 1 then -- starts with 'Windows'
cord_file = '/cord.dll'
elseif os_name == 'Linux' then
elseif os_name == 'Linux' or os_name:match("BSD$") then
cord_file = '/cord.so'
elseif os_name == 'Darwin' then
cord_file = '/cord.dylib'
Expand Down

0 comments on commit c3ee1aa

Please sign in to comment.