Handle virtualenv python without installing neovim package in every venv
This commit is contained in:
		
							parent
							
								
									ce27ba70e4
								
							
						
					
					
						commit
						ccf4ae7197
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		
							
								
								
									
										6
									
								
								init.vim
									
										
									
									
									
								
							
							
						
						
									
										6
									
								
								init.vim
									
										
									
									
									
								
							|  | @ -1,3 +1,9 @@ | ||||||
|  | if exists("$VIRTUAL_ENV") | ||||||
|  |     let g:python3_host_prog=substitute(system("which -a python3 | head -n2 | tail -n1"), "\n", '', 'g') | ||||||
|  | else | ||||||
|  |     let g:python3_host_prog=substitute(system("which python3"), "\n", '', 'g') | ||||||
|  | endif | ||||||
|  | 
 | ||||||
| runtime packages.vim | runtime packages.vim | ||||||
| 
 | 
 | ||||||
| let $MYVIMDIR=split(&rtp, ',')[0] | let $MYVIMDIR=split(&rtp, ',')[0] | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Alexander Gehrke
						Alexander Gehrke