mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
provider/clipboard: add tmux support (#6894)
This commit is contained in:

committed by
Justin M. Keyes

parent
7918845215
commit
6efe84af68
@@ -84,6 +84,12 @@ function! provider#clipboard#Executable() abort
|
||||
let s:copy['*'] = s:copy['+']
|
||||
let s:paste['*'] = s:paste['+']
|
||||
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
|
||||
|
||||
let s:err = 'clipboard: No clipboard tool available. :help clipboard'
|
||||
|
Reference in New Issue
Block a user