[PR] #267 from Un1q32: Display neovim version
Add neovim to list of editors that display fancy version info
This commit is contained in:
commit
e5169705b3
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -2416,7 +2416,7 @@ get_editor() {
|
|||
[[ -z "$editor_full_path" ]] && return
|
||||
|
||||
# Actually obtain the full path
|
||||
editor_full_path="$(which "${editor_full_path}" 2>/dev/null)"
|
||||
editor_full_path="$(command -v "${editor_full_path}" 2>/dev/null)"
|
||||
|
||||
# Resolve symlink and get the original name
|
||||
[[ -L "$editor_full_path" ]] && editor_full_path="$(readlink -f "$editor_full_path")"
|
||||
|
@ -2431,7 +2431,7 @@ get_editor() {
|
|||
|
||||
# Obtain editor version
|
||||
case ${editor_name:=${editor_full_path##*/}} in
|
||||
nano|vim|micro|emacs)
|
||||
nano|vim|nvim|micro|emacs)
|
||||
editor_v=$("$editor_full_path" --version 2>&1)
|
||||
;;
|
||||
kak)
|
||||
|
|
Loading…
Reference in a new issue