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
|
done
|
||||||
nvim "+packadd termdebug" "+TermdebugCommand $args"
|
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'
|
alias debug='gdb --args'
|
||||||
fi
|
fi
|
||||||
elif [ `uname` = Darwin ]; then
|
elif [ `uname` = Darwin ]; then
|
||||||
which lldb &> /dev/null && \
|
command -v lldb &> /dev/null && \
|
||||||
alias debug='lldb --'
|
alias debug='lldb --'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user