diff options
author | Karel Kočí <cynerd@email.cz> | 2024-02-25 22:49:55 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2024-02-25 23:30:57 +0100 |
commit | 1970054228b3a9a3a8fc99af723ee13c147e7747 (patch) | |
tree | 2f151b709a06980ecb3c3b96930a6d518a1e15ed /install | |
parent | fe804beeb41d149cc3e3c714061484e651ba48db (diff) | |
download | myconfigs-1970054228b3a9a3a8fc99af723ee13c147e7747.tar.gz myconfigs-1970054228b3a9a3a8fc99af723ee13c147e7747.tar.bz2 myconfigs-1970054228b3a9a3a8fc99af723ee13c147e7747.zip |
Migrate from vim to nvim
Diffstat (limited to 'install')
-rwxr-xr-x | install | 36 |
1 files changed, 17 insertions, 19 deletions
@@ -2,7 +2,10 @@ cd "$(dirname "$0")" || exit 1 -git submodule update --init --recursive || (echo "Submodule update failed!"; exit 5) +git submodule update --init --recursive || ( + echo "Submodule update failed!" + exit 5 +) # Source inst and diff function . ./utils/inst @@ -49,20 +52,15 @@ if ask "wayvnc" "Install wayland access"; then inst config/systemd/user/wayvnc1.service ~/.config/systemd/user/ fi -if ask "vim" "Install VIM scripts"; then - inst vimrc ~/.vimrc - inst vim/ ~/.vim - mkdir -p ~/.cache/vim # directory for *.swp files - mkdir -p ~/.cache/vim-undo # directory for undo files - # Vim plugin manager - [ -d ~/.vim/bundle/Vundle.vim ] || { - mkdir -p ~/.vim/bundle - git clone "https://github.com/VundleVim/Vundle.vim.git" ~/.vim/bundle/Vundle.vim - } - vim +PluginUpdate +qall +if ask "nvim" "Install NeoVIM scripts"; then + inst config/nvim/ ~/.config/nvim + mkdir -p ~/.cache/nvim # directory for *.swp files + mkdir -p ~/.cache/nvim-undo # directory for undo files + nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync' # cs spelling - mkdir -p ~/.vim/spell - curl "http://ftp.vim.org/vim/runtime/spell/cs.utf-8.spl" > ~/.vim/spell/cs.utf-8.spl + mkdir -p ~/.local/share/nvim/site/spell + curl "http://ftp.vim.org/vim/runtime/spell/cs.utf-8.spl" \ + >~/.local/share/nvim/site/spell/cs.utf-8.spl fi if ask "dev" "Development tools configuration"; then @@ -74,7 +72,7 @@ if ask "dev" "Development tools configuration"; then inst config/mypy/ ~/.config/mypy inst local/bin/new-flake-dev ~/.local/bin/new-flake-dev inst shvcli.ini ~/.shvcli.ini - curl "https://github.com/cyrus-and/gdb-dashboard/raw/master/.gdbinit" > ~/.gdbinit + curl "https://github.com/cyrus-and/gdb-dashboard/raw/master/.gdbinit" >~/.gdbinit fi if ask "sync" "Install synchronization"; then @@ -122,8 +120,8 @@ if ask "desktop" "Install desktop"; then inst config/swaylock/ ~/.config/swaylock inst config/swayidle/ ~/.config/swayidle inst config/wofi/ ~/.config/wofi - [ -f "private/kanshi/$(hostname)" ] \ - && inst "private/kanshi/$(hostname)" ~/.config/kanshi/config + [ -f "private/kanshi/$(hostname)" ] && + inst "private/kanshi/$(hostname)" ~/.config/kanshi/config inst config/xdg-desktop-portal-wlr/ ~/.config/xdg-desktop-portal-wlr inst local/bin/wlr-select-screen ~/.local/bin/wlr-select-screen fi @@ -143,8 +141,8 @@ if ask "elektroline" "Install Elektroline scripts"; then fi if ask "wake" "Install wake-* scripts"; then - [ "$(hostname)" = "ridcully" ] || \ + [ "$(hostname)" = "ridcully" ] || inst local/bin/wake-ridcully ~/.local/bin/wake-ridcully - [ "$(hostname)" = "errol" ] || \ + [ "$(hostname)" = "errol" ] || inst local/bin/wake-errol ~/.local/bin/wake-errol fi |