Change vim for neovim
This commit is contained in:
parent
7bb9f4de25
commit
4e142d08ec
|
@ -2,7 +2,6 @@ PAC,alsa-utils,Utilities for ALSA
|
||||||
PAC,clang,C compiler
|
PAC,clang,C compiler
|
||||||
PAC,cmake,Meta-build system
|
PAC,cmake,Meta-build system
|
||||||
PAC,cmus,Terminal music player
|
PAC,cmus,Terminal music player
|
||||||
AUR,compiledb,Utility for generating compile_commands.json from Makefile
|
|
||||||
FUN,install_dash,
|
FUN,install_dash,
|
||||||
PAC,dunst,Notification daemon
|
PAC,dunst,Notification daemon
|
||||||
SRC,https://github.com/augustogunsch/dmenu,Graphical dynamic menu
|
SRC,https://github.com/augustogunsch/dmenu,Graphical dynamic menu
|
||||||
|
@ -14,7 +13,6 @@ PAC,ffmpeg,Media library with CLI tool
|
||||||
PAC,fzf,Fuzzy finder
|
PAC,fzf,Fuzzy finder
|
||||||
PAC,gcc,C compiler
|
PAC,gcc,C compiler
|
||||||
PAC,gdb,C debugger
|
PAC,gdb,C debugger
|
||||||
PAC,gvim,Text editor
|
|
||||||
PAC,htop,System monitor
|
PAC,htop,System monitor
|
||||||
PAC,libnotify,Implementation of the Desktop Notifications Specification
|
PAC,libnotify,Implementation of the Desktop Notifications Specification
|
||||||
PAC,libxinerama,X11 extension which provides support for extending a desktop across multiple displays
|
PAC,libxinerama,X11 extension which provides support for extending a desktop across multiple displays
|
||||||
|
@ -25,6 +23,7 @@ AUR,mmv,Batch renamer
|
||||||
PAC,mpv,Media player
|
PAC,mpv,Media player
|
||||||
PAC,mupdf,Lightweight PDF viewer
|
PAC,mupdf,Lightweight PDF viewer
|
||||||
PAC,neofetch,System info fetcher
|
PAC,neofetch,System info fetcher
|
||||||
|
PAC,neovim,Text editor
|
||||||
AUR,nerd-fonts-hack,Monospace font
|
AUR,nerd-fonts-hack,Monospace font
|
||||||
PAC,newsboat,RSS feed reader and manager
|
PAC,newsboat,RSS feed reader and manager
|
||||||
PAC,noto-fonts,Collection of standard fonts from Google
|
PAC,noto-fonts,Collection of standard fonts from Google
|
||||||
|
|
|
|
@ -488,14 +488,14 @@ repos() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# pwd must be the home dir of the user
|
# pwd must be the home dir of the user
|
||||||
configure_vim_for() {
|
configure_nvim_for() {
|
||||||
echo -n "Downloading vim-plug for $1..."
|
echo -n "Downloading vim-plug for $1..."
|
||||||
quiet sudo -u "$1" curl -sfLo .vim/autoload/plug.vim --create-dirs \
|
quiet sudo -u "$1" curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
|
||||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||||
echo "done"
|
echo "done"
|
||||||
|
|
||||||
echo -n "Installing vim plugins for $1..."
|
echo -n "Installing neovim plugins for $1..."
|
||||||
quiet sudo -u "$1" vim -E -c PlugInstall -c qall
|
quiet sudo -u "$1" nvim -E -c PlugInstall -c qall
|
||||||
echo "done"
|
echo "done"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -519,12 +519,12 @@ install_dotfiles() {
|
||||||
|
|
||||||
qpushd "$HOME_DIR"
|
qpushd "$HOME_DIR"
|
||||||
install_dotfiles_for "$INSTALL_USER"
|
install_dotfiles_for "$INSTALL_USER"
|
||||||
configure_vim_for "$INSTALL_USER"
|
configure_nvim_for "$INSTALL_USER"
|
||||||
qpopd
|
qpopd
|
||||||
|
|
||||||
qpushd "$HOME"
|
qpushd "$HOME"
|
||||||
install_dotfiles_for "root"
|
install_dotfiles_for "root"
|
||||||
configure_vim_for "root"
|
configure_nvim_for "root"
|
||||||
qpopd
|
qpopd
|
||||||
|
|
||||||
change_shells
|
change_shells
|
||||||
|
|
Loading…
Reference in New Issue