Check tmux exists before loading osc52
This commit is contained in:
		
							parent
							
								
									01059ac01a
								
							
						
					
					
						commit
						67b9c6b45a
					
				
							
								
								
									
										3
									
								
								vimrc
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								vimrc
									
									
									
									
									
								
							| @ -200,7 +200,8 @@ Pack 'jrozner/vim-antlr' | ||||
| 
 | ||||
| " Plugins for remote integrations | ||||
| Pack 'greymd/oscyank.vim', {'type': 'opt'} | ||||
| let g:use_osc52 = trim(system('tmux show-options -g set-clipboard')) ==# 'set-clipboard on' | ||||
| let g:use_osc52 = $TMUX !=# '' && | ||||
| \ trim(system('tmux show-options -g set-clipboard')) ==# 'set-clipboard on' | ||||
| if g:use_osc52 | ||||
|   packadd oscyank.vim | ||||
| endif | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user