fixed nv command!!!!!

This commit is contained in:
pika 2025-05-24 14:18:11 +02:00
parent 4c6a312761
commit 242df2f7e5

View file

@ -99,7 +99,13 @@ if command_exists nvim; then
alias cnvim="command nvim"
alias nvim="$(choose_nvim)"
nv() {
NVIM_APPNAME="$1" command nvim "${@:-2}"
appname="$1"
shift
if [ "$#" -eq 0 ]; then
NVIM_APPNAME="$appname" command nvim
else
NVIM_APPNAME="$appname" command nvim "$@"
fi
}
if [ -d "$HOME/.config/nvdev" ]; then