mirror of
https://github.com/neovim/neovim.git
synced 2024-12-29 14:41:06 -07:00
provider/clipboard: add tmux support (#6894)
This commit is contained in:
parent
7918845215
commit
6efe84af68
@ -84,6 +84,12 @@ function! provider#clipboard#Executable() abort
|
|||||||
let s:copy['*'] = s:copy['+']
|
let s:copy['*'] = s:copy['+']
|
||||||
let s:paste['*'] = s:paste['+']
|
let s:paste['*'] = s:paste['+']
|
||||||
return 'win32yank'
|
return 'win32yank'
|
||||||
|
elseif exists('$TMUX') && executable('tmux')
|
||||||
|
let s:copy['+'] = 'tmux load-buffer -'
|
||||||
|
let s:paste['+'] = 'tmux save-buffer -'
|
||||||
|
let s:copy['*'] = s:copy['+']
|
||||||
|
let s:paste['*'] = s:paste['+']
|
||||||
|
return 'tmux'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let s:err = 'clipboard: No clipboard tool available. :help clipboard'
|
let s:err = 'clipboard: No clipboard tool available. :help clipboard'
|
||||||
|
Loading…
Reference in New Issue
Block a user