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:
1 file changed
+1
-1
@@ -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",
|
||||||
|
|||||||
Reference in new issue
Block a user