From fbc6e0deae9b1fcb11c7b11ceb583225e3988767 Mon Sep 17 00:00:00 2001 From: beeender Date: Fri, 9 May 2025 21:44:22 +0800 Subject: [PATCH] Richclip supports Mac today --- lua/richclip/binary.lua | 4 ++-- lua/richclip/init.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lua/richclip/binary.lua b/lua/richclip/binary.lua index 0e57502..474bdea 100644 --- a/lua/richclip/binary.lua +++ b/lua/richclip/binary.lua @@ -73,9 +73,9 @@ M.download_richclip_binary = function() end M.get_richclip_exe_path = function() - if vim.fn['has']("win32") ~= 0 or vim.fn['has']("mac") ~= 0 then + if vim.fn['has']("win32") ~= 0 then utils.notify("binary.get_richclip_exe_path", { - msg = '"richclip" does not support Windows and MacOs yet', + msg = '"richclip" does not support Windows yet', level = "ERROR" }) return nil diff --git a/lua/richclip/init.lua b/lua/richclip/init.lua index a8b6a14..82682bc 100644 --- a/lua/richclip/init.lua +++ b/lua/richclip/init.lua @@ -48,9 +48,9 @@ end ---Takes over the g.clipboard function M.set_g_clipboard() - if vim.fn['has']("win32") ~= 0 or vim.fn['has']("mac") ~= 0 then + if vim.fn['has']("win32") ~= 0 then utils.notify("richclip.set_g_clipboard", { - msg = '"richclip" does not support MacOS and Windows yet', + msg = '"richclip" does not support Windows yet', level = "WARN" }) return