Add installation scripts
This commit is contained in:
18
scripts/install-neovim.sh
Executable file
18
scripts/install-neovim.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
set -euo pipefail
|
||||
|
||||
DOTFILES="${HOME}/.config/literate-dotfiles"
|
||||
|
||||
echo "==> Neovim packages"
|
||||
paru -S --needed neovim python-pynvim nodejs-neovim
|
||||
|
||||
echo "==> Installing vim-plug"
|
||||
sh -c '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'
|
||||
|
||||
echo "==> Tangling vim.org"
|
||||
emacsclient -e "(org-babel-tangle-file \"${DOTFILES}/vim.org\")" \
|
||||
|| emacs --batch -l org --eval "(org-babel-tangle-file \"${DOTFILES}/vim.org\")"
|
||||
|
||||
echo "==> Installing neovim plugins"
|
||||
nvim --headless +PlugInstall +UpdateRemotePlugins +qa
|
||||
Reference in New Issue
Block a user