fix: wl-copy detect() function

Was previously checking if the Wayland socket was executable. Now
properly checks if it's readable.
This commit is contained in:
swaits committed 2024-12-26 20:35:09 -07:00
1 parent 7d6c529b11
commit 27c5d4caba
1 file changed
+1 -1
+1 -1
View File
@@ -17,7 +17,7 @@ local M = {
return (vim.fn.executable("wl-copy") == 1) return (vim.fn.executable("wl-copy") == 1)
and (vim.fn.executable("wl-paste") == 1) and (vim.fn.executable("wl-paste") == 1)
and wayland_display ~= "" and wayland_display ~= ""
and (vim.fn.isdirectory(socket_path) == 1) and (vim.fn.filereadable(socket_path) == 1)
end, end,
commands = { commands = {
copy = "wl-copy", copy = "wl-copy",