1
0
mirror of https://github.com/jiriks74/presence.nvim synced 2024-11-23 12:27:50 +01:00

Merge pull request #2 from DarkMatter-999/mingw-support

Added support for MINGW neovim install on Windows hosts
This commit is contained in:
Jiří Štefka 2023-09-28 23:02:34 +02:00 committed by GitHub
commit 76935caabd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -183,7 +183,7 @@ end
-- Normalize the OS name from uname
function Presence.get_os_name(uname)
if uname.sysname:find("Windows") then
if uname.sysname:find("Windows") or uname.sysname:find("MINGW") then
return "windows"
elseif uname.sysname:find("Darwin") then
return "macos"