fix: nvim installation in wsl
This commit is contained in:
parent
8a51047728
commit
f609e44685
26
cli/vim.sh
26
cli/vim.sh
|
@ -20,21 +20,16 @@ log 'Setting up vim'
|
||||||
export VIM=vim
|
export VIM=vim
|
||||||
case "$PM" in
|
case "$PM" in
|
||||||
apt)
|
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
|
# gui-common is required for clipboard integration
|
||||||
sudo add-apt-repository ppa:jonathonf/vim -y -n
|
# sudo add-apt-repository ppa:jonathonf/vim -y -n
|
||||||
pm_update
|
# pm_update
|
||||||
sudo apt install -y vim vim-gui-common
|
# sudo apt install -y vim vim-gui-common
|
||||||
if enhance_vim; then
|
# if enhance_vim; then
|
||||||
sudo pip3 install pyvim
|
# sudo pip3 install pyvim
|
||||||
fi
|
# fi
|
||||||
|
sudo add-apt-repository ppa:neovim-ppa/stable
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install neovim ripgrep
|
||||||
;;
|
;;
|
||||||
pacman)
|
pacman)
|
||||||
#sudo pacman -S --noconfirm --needed neovim ripgrep
|
#sudo pacman -S --noconfirm --needed neovim ripgrep
|
||||||
|
@ -51,6 +46,9 @@ case "$PM" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
|
||||||
|
~/.local/share/nvim/site/pack/packer/start/packer.nvim
|
||||||
|
|
||||||
# symlink configuration
|
# symlink configuration
|
||||||
#sudo ln -sf "$(command -v vim)" /usr/bin/v
|
#sudo ln -sf "$(command -v vim)" /usr/bin/v
|
||||||
lnsf "$DIR/vim/neovim/init.lua" "$XDG_CONFIG_HOME/nvim/init.lua"
|
lnsf "$DIR/vim/neovim/init.lua" "$XDG_CONFIG_HOME/nvim/init.lua"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user