feat(nvim): use local appimage when available

This commit is contained in:
Michel 2023-04-08 20:29:34 +02:00
parent 60a68f6748
commit 039ce98f95
3 changed files with 30 additions and 2 deletions

View File

@ -0,0 +1,22 @@
# To update:
# ```
# curl -LO https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage \
# --output-dir $HOME/bin &&
# chmod u+x $HOME/bin/nvim.appimage
# ```
#
[Desktop Entry]
Name=Neovim ($HOME/bin)
GenericName=Text Editor
TryExec=/home/michel/bin/nvim.appimage
Exec=/home/michel/bin/nvim.appimage %F
Terminal=true
Type=Application
Keywords=Text;editor;
Icon=nvim
Categories=Utility;TextEditor;
StartupNotify=false
MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++;
#
# See https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

10
.zshrc
View File

@ -166,12 +166,18 @@ alias ls='exa --icons --no-permissions --no-user'
alias make='colormake-short' alias make='colormake-short'
# Neovim — nvim # Neovim — nvim
if (( ${+commands[nvim.appimage]} )); then
alias vi='nvim.appimage'
else
alias vi='nvim'
fi
local nvim_python=($HOME/.config/nvim/.direnv/python-3*(om)) local nvim_python=($HOME/.config/nvim/.direnv/python-3*(om))
nvim_python=$nvim_python[1] nvim_python=$nvim_python[1]
# Use `export NVIM=$(nvr --serverlist | fzf)` to choose existing instance # Use `export NVIM=$(nvr --serverlist | fzf)` to choose existing instance
alias nvr="${nvim_python}/bin/nvr" alias nvr="${nvim_python}/bin/nvr"
alias vi='nvim'
# Debian Specific: # Debian Specific:
# sudo dpkg-divert --divert /usr/bin/fd --rename /usr/bin/fdfind # sudo dpkg-divert --divert /usr/bin/fd --rename /usr/bin/fdfind
@ -241,7 +247,7 @@ fi
### ###
export BROWSER=firefox export BROWSER=firefox
export EDITOR=nvim export EDITOR=vi
# -i Searches ignore case # -i Searches ignore case
# -F Automatically exit if the entire file can be displayed # -F Automatically exit if the entire file can be displayed