use use nvim -p by default

This commit is contained in:
tastytea 2022-08-08 16:59:50 +02:00
parent 692ed1cb62
commit ad7f30759b
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -19,7 +19,7 @@ fi
# Set preferred editor. # Set preferred editor.
# Add Defaults env_keep += "SSH_CONNECTION" to /etc/sudoers.d/ssh_vars # Add Defaults env_keep += "SSH_CONNECTION" to /etc/sudoers.d/ssh_vars
if type nvim >& -; then if type nvim >& -; then
VISUAL="$(command -v nvim)" VISUAL="$(command -v nvim) -p"
elif command -v emacsclient > /dev/null; then elif command -v emacsclient > /dev/null; then
export EMACS_SOCKET_NAME="${HOME}/.emacs.d/server/server" export EMACS_SOCKET_NAME="${HOME}/.emacs.d/server/server"
if pgrep -f "emacs --daemon" > /dev/null; then if pgrep -f "emacs --daemon" > /dev/null; then