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 = {
|
vim.g.python_indent = {
|
||||||
open_paren = 'shiftwidth()',
|
open_paren = 'shiftwidth()',
|
||||||
nested_paren = 'shiftwidth()',
|
nested_paren = 'shiftwidth()',
|
||||||
|
|
|
@ -67,7 +67,6 @@ require('packer').startup {
|
||||||
}
|
}
|
||||||
use {
|
use {
|
||||||
'https://github.com/lewis6991/gitsigns.nvim.git',
|
'https://github.com/lewis6991/gitsigns.nvim.git',
|
||||||
tag = 'release',
|
|
||||||
config = function()
|
config = function()
|
||||||
require 'config_plugins.config_gitsigns'
|
require 'config_plugins.config_gitsigns'
|
||||||
end
|
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
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# nvim setup
|
# nvim setup - install Packer
|
||||||
./config/nvim/install.sh
|
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