feat: use asdf/direnv for pynvim
parent
9ad6acdff1
commit
0f7b0952a2
|
@ -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
|
|
@ -6,3 +6,4 @@ debug
|
|||
foo.*
|
||||
*.log
|
||||
data
|
||||
/.direnv/
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
python 3.11.2
|
||||
direnv 2.32.2
|
2
init.lua
2
init.lua
|
@ -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")
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
greenlet==2.0.2
|
||||
msgpack==1.0.5
|
||||
pynvim==0.4.3
|
Loading…
Reference in New Issue