feat: use asdf/direnv for pynvim

This commit is contained in:
Michel 2023-03-31 17:56:00 +02:00 committed by Michel
parent 9ad6acdff1
commit 0f7b0952a2
5 changed files with 24 additions and 0 deletions

16
.envrc Normal file
View File

@ -0,0 +1,16 @@
# See `direnv stdlib` for special functions provided by _direnv_.
use asdf
# Git
export GIT_AUTHOR_NAME="Michel"
export GIT_AUTHOR_EMAIL="michel@none"
export GIT_COMMITTER_NAME="Michel"
export GIT_COMMITTER_EMAIL="michel@none"
# Python virtual env
layout python3
if (($(echo $(direnv_layout_dir)/python* | wc --words) > 1)); then
log_error "Found several python environments"
\ls .direnv
fi

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ debug
foo.*
*.log
data
/.direnv/

2
.tool-versions Normal file
View File

@ -0,0 +1,2 @@
python 3.11.2
direnv 2.32.2

View File

@ -1,2 +1,4 @@
vim.g.python3_host_prog = vim.fn.stdpath("config") .. "/.direnv/python-3.11.2/bin/python3"
-- bootstrap lazy.nvim, LazyVim and your plugins
require("config.lazy")

3
requirements.txt Normal file
View File

@ -0,0 +1,3 @@
greenlet==2.0.2
msgpack==1.0.5
pynvim==0.4.3