mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
added support for termux-clipboard : clipboard.vim (#14244)
Termux - Android terminal emulator Link - https://termux.com/
This commit is contained in:
parent
3f447d928d
commit
291f1ece7f
@ -132,6 +132,12 @@ function! provider#clipboard#Executable() abort
|
||||
let s:copy['*'] = s:copy['+']
|
||||
let s:paste['*'] = s:paste['+']
|
||||
return 'win32yank'
|
||||
elseif executable('termux-clipboard-set')
|
||||
let s:copy['+'] = ['termux-clipboard-set']
|
||||
let s:paste['+'] = ['termux-clipboard-get']
|
||||
let s:copy['*'] = s:copy['+']
|
||||
let s:paste['*'] = s:paste['+']
|
||||
return 'termux-clipboard'
|
||||
elseif !empty($TMUX) && executable('tmux')
|
||||
let s:copy['+'] = ['tmux', 'load-buffer', '-']
|
||||
let s:paste['+'] = ['tmux', 'save-buffer', '-']
|
||||
|
Loading…
Reference in New Issue
Block a user