From 129bc5c0a02ed0169bdfbc3175b197b9b4413944 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Wed, 22 May 2024 15:06:46 +0300 Subject: [PATCH] make: find neovim n the profile using jq --- Makefile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Makefile b/Makefile index cc3f779..54a654b 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,6 @@ NIX_RUN := nix run .\# NIX_LOCK := nix flake lock -NEOVIM_INDEX := 4 - DEPS_EDITOR := \ nixeovim @@ -57,7 +55,7 @@ rollback: .PHONY: neovim neovim: - nix profile upgrade $(NEOVIM_INDEX) + nix profile upgrade $(or $(NEOVIM_INDEX),$(shell nix profile list --json | jq '.elements | to_entries[] | select(.value.attrPath | endswith(".neovim-dev")) | .key')) .PHONY: init-neovim init-neovim: