From cd5913ff5481229b15186293d1d46dd9500789f9 Mon Sep 17 00:00:00 2001 From: Drunk-Dream <100981449+Drunk-Dream@users.noreply.github.com> Date: Thu, 15 Feb 2024 05:36:04 +0800 Subject: [PATCH] Handle MINGW32_NT-10.0 sysname of MSYS2 on Windows (#145) * fix: use in msys2 * check substring --- lua/codeium/io.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/codeium/io.lua b/lua/codeium/io.lua index 0664fb9..6374972 100644 --- a/lua/codeium/io.lua +++ b/lua/codeium/io.lua @@ -211,7 +211,7 @@ function M.get_system_info() os = "linux" elseif os == "Darwin" then os = "macos" - elseif os == "Windows_NT" then + elseif os == "Windows_NT" or string.find(os, "MINGW32_NT") then os = "windows" else require("codeium.notify").warn("Unknown sysname: ", os)