mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
Add wl-paste support (#168)
* Add wl-paste support * Apply stylua * Update README
This commit is contained in:
committed by
GitHub
parent
0f53c256da
commit
04a4ecb0de
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user