LazyVim/.envrc
2023-09-01 16:22:04 +02:00

25 lines
676 B
Plaintext

# 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"
du -sh .direnv/*
fi
# neovim remote
if [[ ! -x $HOME/.local/bin/nvr ]]; then
log_error "Neovim remote (nvr) not found"
log_status "To create a symlink:"
log_error "mkdir -p $HOME/.local/bin"
log_error "ln -fs \$HOME/.config/nvim/.direnv/python-3*/bin/nvr(om[1]) \$HOME/.local/bin"
fi