diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..d97c96f --- /dev/null +++ b/.envrc @@ -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 diff --git a/.gitignore b/.gitignore index cc5457a..15beb37 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ debug foo.* *.log data +/.direnv/ diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..5298a76 --- /dev/null +++ b/.tool-versions @@ -0,0 +1,2 @@ +python 3.11.2 +direnv 2.32.2 diff --git a/init.lua b/init.lua index 2514f9e..9a1ea0b 100644 --- a/init.lua +++ b/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") diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..5583eba --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +greenlet==2.0.2 +msgpack==1.0.5 +pynvim==0.4.3