From f9c350fffb1f4b9594ddab21cb9d80bbe8e799a9 Mon Sep 17 00:00:00 2001 From: Michel Date: Mon, 17 Apr 2023 18:11:11 +0200 Subject: [PATCH] feat(nvr): test for nvr availability --- .envrc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.envrc b/.envrc index d97c96f..b5d8742 100644 --- a/.envrc +++ b/.envrc @@ -14,3 +14,11 @@ if (($(echo $(direnv_layout_dir)/python* | wc --words) > 1)); then log_error "Found several python environments" \ls .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 -s \$HOME/.config/nvim/.direnv/python-3*/bin/nvr(om[1]) \$HOME/.local/bin" +fi