From 1e31e8d074e849d195decd41a538873cb4c4355f Mon Sep 17 00:00:00 2001 From: Michel Date: Thu, 6 Apr 2023 20:31:55 +0200 Subject: [PATCH] feat(zsh): use neovim --- .zshrc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index d8b66d9..a0306cb 100644 --- a/.zshrc +++ b/.zshrc @@ -148,6 +148,14 @@ alias hg="kitty +kitten hyperlinked_grep" alias ls='exa --icons --no-permissions --no-user' alias make='colormake-short' +# Neovim — nvim +local nvim_python=($HOME/.config/nvim/.direnv/python-3*(om)) +nvim_python=$nvim_python[1] + +# Use `export NVIM=$(nvr --serverlist | fzf)` to choose existing instance +alias nvr="${nvim_python}/bin/nvr" +alias vi='nvim' + # Debian Specific: # sudo dpkg-divert --divert /usr/bin/fd --rename /usr/bin/fdfind @@ -216,7 +224,7 @@ fi ### export BROWSER=firefox -export EDITOR=vim +export EDITOR=nvim # -i Searches ignore case # -F Automatically exit if the entire file can be displayed