Add wl-paste support (#168)

* Add wl-paste support

* Apply stylua

* Update README
This commit is contained in:
Anatolii Kurotych
2022-10-04 10:31:25 +02:00
committed by GitHub
parent 0f53c256da
commit 04a4ecb0de
2 changed files with 8 additions and 2 deletions

View File

@@ -413,6 +413,10 @@ local function imgFromClipboard()
.. "/"
.. filename
end
elseif vim.fn.executable("wl-paste") == 1 then
get_paste_command = function(dir, filename)
return "wl-paste -n -t image/png > " .. dir .. "/" .. filename
end
elseif vim.fn.executable("osascript") == 1 then
get_paste_command = function(dir, filename)
return string.format(