Use vimdebug in build-debug if nvim is available
This commit is contained in:
		
							parent
							
								
									18bcb6ccde
								
							
						
					
					
						commit
						edf37ebf07
					
				@ -17,11 +17,13 @@ if [ `uname` = Linux ]; then
 | 
			
		||||
    done
 | 
			
		||||
    nvim "+packadd termdebug" "+TermdebugCommand $args"
 | 
			
		||||
  }
 | 
			
		||||
  if which gdb &> /dev/null; then
 | 
			
		||||
  if command -v nvim &> /dev/null; then
 | 
			
		||||
    alias debug=vimdebug
 | 
			
		||||
  elif command -v gdb &> /dev/null; then
 | 
			
		||||
    alias debug='gdb --args'
 | 
			
		||||
  fi
 | 
			
		||||
elif [ `uname` = Darwin ]; then
 | 
			
		||||
  which lldb &> /dev/null && \
 | 
			
		||||
  command -v lldb &> /dev/null && \
 | 
			
		||||
    alias debug='lldb --'
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user