✨ 🐍 make trgt for nvim pyprovider
This commit is contained in:
parent
4b6cf4f746
commit
9f52cb181d
4 changed files with 31 additions and 5 deletions
|
|
@ -77,7 +77,8 @@ nmap ]x ctrih/^# %%<CR><CR>
|
|||
luafile $HOME/.config/nvim/plugins.lua
|
||||
|
||||
" python stuff
|
||||
let g:python3_host_prog = "$HOME/.venvs/nvim/bin/python"
|
||||
" let g:python3_host_prog = "$HOME/.venvs/nvim/bin/python"
|
||||
let g:python4_host_prog = "$HOME/.config/nvim/python"
|
||||
|
||||
" VimWiki setup
|
||||
let g:vimwiki_sync_branch = "main"
|
||||
|
|
|
|||
13
makefile
13
makefile
|
|
@ -12,7 +12,7 @@ setup_alacritty:
|
|||
ln -s -f ~/dotfiles/.config/alacritty/alacritty.yml ~/.config/alacritty/alacritty.yml
|
||||
|
||||
setup_python_and_poetry:
|
||||
# TODO: make raget not tested properly
|
||||
# TODO: make target not tested properly
|
||||
#
|
||||
sudo apt purge python3 python3-pip python3-openssl
|
||||
sudo apt-get update
|
||||
|
|
@ -30,9 +30,14 @@ setup_python_and_poetry:
|
|||
# setup poetry - zsh
|
||||
mkdir $ZSH_CUSTOM/plugins/poetry
|
||||
poetry completions zsh > $ZSH_CUSTOM/plugins/poetry/_poetry
|
||||
# nvim python provider
|
||||
pip3 install --upgrade pynvim
|
||||
|
||||
#
|
||||
# setup_nvim_python_provider
|
||||
cd ~/dotfiles/nvim_python_provider && poetry install
|
||||
cd ~/dotfiles/nvim_python_provider && poetry run which python > /tmp/nvim_python_provider
|
||||
ln -s -f $$(cat /tmp/nvim_python_provider) ~/.config/nvim/python
|
||||
rm /tmp/nvim_python_provider
|
||||
~/config/nvim/python -m pip install pynvim
|
||||
# "WARNING: in nvim run :checkhealth and check python provider status"
|
||||
|
||||
setup_tmux_a:
|
||||
echo "configuring tmux with 'a' as prefix"
|
||||
|
|
|
|||
7
nvim_python_provider/poetry.lock
generated
Normal file
7
nvim_python_provider/poetry.lock
generated
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# This file is automatically @generated by Poetry 1.4.2 and should not be changed by hand.
|
||||
package = []
|
||||
|
||||
[metadata]
|
||||
lock-version = "2.0"
|
||||
python-versions = "^3.8"
|
||||
content-hash = "935b488be9f11b23f14aa1ce3bed4013d88bd77462534b5e4fe5bb82b485bfe9"
|
||||
13
nvim_python_provider/pyproject.toml
Normal file
13
nvim_python_provider/pyproject.toml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[tool.poetry]
|
||||
name = "nvim-python-provider"
|
||||
version = "0.1.0"
|
||||
description = "poetry virtual environment for nvim"
|
||||
authors = ["DannyDannyDanny <dth@taiga.ai>"]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.8"
|
||||
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core"]
|
||||
build-backend = "poetry.core.masonry.api"
|
||||
Loading…
Add table
Add a link
Reference in a new issue