feat: use asdf/direnv for pynvim
This commit is contained in:
parent
9ad6acdff1
commit
0f7b0952a2
16
.envrc
Normal file
16
.envrc
Normal 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
1
.gitignore
vendored
@ -6,3 +6,4 @@ debug
|
||||
foo.*
|
||||
*.log
|
||||
data
|
||||
/.direnv/
|
||||
|
2
.tool-versions
Normal file
2
.tool-versions
Normal file
@ -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")
|
||||
|
3
requirements.txt
Normal file
3
requirements.txt
Normal file
@ -0,0 +1,3 @@
|
||||
greenlet==2.0.2
|
||||
msgpack==1.0.5
|
||||
pynvim==0.4.3
|
Loading…
x
Reference in New Issue
Block a user