Change vim for neovim

This commit is contained in:
Augusto Gunsch 2021-08-22 16:28:23 -03:00
parent 7bb9f4de25
commit 4e142d08ec
No known key found for this signature in database
GPG Key ID: F7EEFE29825C72DC
2 changed files with 8 additions and 9 deletions

View File

@ -2,7 +2,6 @@ PAC,alsa-utils,Utilities for ALSA
PAC,clang,C compiler
PAC,cmake,Meta-build system
PAC,cmus,Terminal music player
AUR,compiledb,Utility for generating compile_commands.json from Makefile
FUN,install_dash,
PAC,dunst,Notification daemon
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,gcc,C compiler
PAC,gdb,C debugger
PAC,gvim,Text editor
PAC,htop,System monitor
PAC,libnotify,Implementation of the Desktop Notifications Specification
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,mupdf,Lightweight PDF viewer
PAC,neofetch,System info fetcher
PAC,neovim,Text editor
AUR,nerd-fonts-hack,Monospace font
PAC,newsboat,RSS feed reader and manager
PAC,noto-fonts,Collection of standard fonts from Google

1 PAC alsa-utils Utilities for ALSA
2 PAC clang C compiler
3 PAC cmake Meta-build system
4 PAC cmus Terminal music player
AUR compiledb Utility for generating compile_commands.json from Makefile
5 FUN install_dash
6 PAC dunst Notification daemon
7 SRC https://github.com/augustogunsch/dmenu Graphical dynamic menu
13 PAC fzf Fuzzy finder
14 PAC gcc C compiler
15 PAC gdb C debugger
PAC gvim Text editor
16 PAC htop System monitor
17 PAC libnotify Implementation of the Desktop Notifications Specification
18 PAC libxinerama X11 extension which provides support for extending a desktop across multiple displays
23 PAC mpv Media player
24 PAC mupdf Lightweight PDF viewer
25 PAC neofetch System info fetcher
26 PAC neovim Text editor
27 AUR nerd-fonts-hack Monospace font
28 PAC newsboat RSS feed reader and manager
29 PAC noto-fonts Collection of standard fonts from Google

View File

@ -488,14 +488,14 @@ repos() {
}
# pwd must be the home dir of the user
configure_vim_for() {
configure_nvim_for() {
echo -n "Downloading vim-plug for $1..."
quiet sudo -u "$1" curl -sfLo .vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
quiet sudo -u "$1" curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
echo "done"
echo -n "Installing vim plugins for $1..."
quiet sudo -u "$1" vim -E -c PlugInstall -c qall
echo -n "Installing neovim plugins for $1..."
quiet sudo -u "$1" nvim -E -c PlugInstall -c qall
echo "done"
}
@ -519,12 +519,12 @@ install_dotfiles() {
qpushd "$HOME_DIR"
install_dotfiles_for "$INSTALL_USER"
configure_vim_for "$INSTALL_USER"
configure_nvim_for "$INSTALL_USER"
qpopd
qpushd "$HOME"
install_dotfiles_for "root"
configure_vim_for "root"
configure_nvim_for "root"
qpopd
change_shells