Change pynvim to system package instead of venv, move nvim install to global install.sh
This commit is contained in:
parent
bf837aeedb
commit
fb7dfc6891
|
@ -1,14 +0,0 @@
|
|||
#! /usr/bin/env sh
|
||||
|
||||
# Install Packer
|
||||
PACKER_DIR="$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim"
|
||||
if [ ! -d $PACKER_DIR ]; then
|
||||
git clone --depth 1 https://github.com/wbthomason/packer.nvim $PACKER_DIR
|
||||
fi
|
||||
|
||||
NVIM_DIR=$(dirname $(readlink -f $0))
|
||||
/usr/bin/env python3 -m venv --clear "$NVIM_DIR/venv"
|
||||
$NVIM_DIR/venv/bin/python -m pip install -U pip setuptools wheel || exit 1
|
||||
$NVIM_DIR/venv/bin/python -m pip install -U pynvim
|
||||
|
||||
nvim -c "PackerInstall" -c "qa"
|
|
@ -1,4 +1,4 @@
|
|||
vim.g.python3_host_prog = '~/.config/nvim/venv/bin/python'
|
||||
vim.g.python3_host_prog = '/usr/bin/python3'
|
||||
vim.g.python_indent = {
|
||||
open_paren = 'shiftwidth()',
|
||||
nested_paren = 'shiftwidth()',
|
||||
|
|
|
@ -67,7 +67,6 @@ require('packer').startup {
|
|||
}
|
||||
use {
|
||||
'https://github.com/lewis6991/gitsigns.nvim.git',
|
||||
tag = 'release',
|
||||
config = function()
|
||||
require 'config_plugins.config_gitsigns'
|
||||
end
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -16,5 +16,8 @@ for FILE in config/*; do
|
|||
fi
|
||||
done
|
||||
|
||||
# nvim setup
|
||||
./config/nvim/install.sh
|
||||
# nvim setup - install Packer
|
||||
PACKER_DIR="$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim"
|
||||
if [ ! -d $PACKER_DIR ]; then
|
||||
git clone --depth 1 https://github.com/wbthomason/packer.nvim $PACKER_DIR
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue