Skip to content

Commit

Permalink
fix: match os_uname().sysname, not version (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
chemio9 authored Sep 3, 2024
1 parent 35e62c4 commit 598d24b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/freeze-code/utils/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ end
---@class FreezeCodeUtils
---@field os FreezeCodeOS
M.os = {
is_win = vim.loop.os_uname().version:match("Windows"),
is_macos = vim.loop.os_uname().version:match("Darwin"),
is_unix = vim.loop.os_uname().version:match("Linux"),
is_win = vim.loop.os_uname().sysname:match("Windows"),
is_macos = vim.loop.os_uname().sysname:match("Darwin"),
is_unix = vim.loop.os_uname().sysname:match("Linux"),
}

return M

0 comments on commit 598d24b

Please sign in to comment.