fix: nvim installation in wsl

This commit is contained in:
Klesh Wong 2022-12-05 20:55:00 +08:00
parent 8a51047728
commit f609e44685

View File

@ -20,21 +20,16 @@ log 'Setting up vim'
export VIM=vim
case "$PM" in
apt)
# nvim not very compatible with CJK characters and ranger
#sudo add-apt-repository ppa:neovim-ppa/stable -y
#sudo apt update
#sudo apt install -y neovim
#if enhance_vim; then
#sudo pip3 install pyvim neovim
#fi
# gui-common is required for clipboard integration
sudo add-apt-repository ppa:jonathonf/vim -y -n
pm_update
sudo apt install -y vim vim-gui-common
if enhance_vim; then
sudo pip3 install pyvim
fi
# sudo add-apt-repository ppa:jonathonf/vim -y -n
# pm_update
# sudo apt install -y vim vim-gui-common
# if enhance_vim; then
# sudo pip3 install pyvim
# fi
sudo add-apt-repository ppa:neovim-ppa/stable
sudo apt-get update
sudo apt-get install neovim ripgrep
;;
pacman)
#sudo pacman -S --noconfirm --needed neovim ripgrep
@ -51,6 +46,9 @@ case "$PM" in
;;
esac
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim
# symlink configuration
#sudo ln -sf "$(command -v vim)" /usr/bin/v
lnsf "$DIR/vim/neovim/init.lua" "$XDG_CONFIG_HOME/nvim/init.lua"