From 651359a54b9b28daa7fdf81e8f1f05350d0e6867 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 6 Dec 2023 23:15:47 -0600 Subject: [PATCH] refactor(nvim): use `nix eval` to run nix files --- dots/.config/nvim/after/ftplugin/nix.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dots/.config/nvim/after/ftplugin/nix.lua b/dots/.config/nvim/after/ftplugin/nix.lua index 0dc0c260..b8d0b952 100644 --- a/dots/.config/nvim/after/ftplugin/nix.lua +++ b/dots/.config/nvim/after/ftplugin/nix.lua @@ -7,9 +7,9 @@ vim.api.nvim_buf_set_option(0, "commentstring", "# %s") vim.keymap.set("n", "fr", function() local cmd = { - "nix-instantiate", - "--eval", - "--strict", + "nix", + "eval", + "--file", vim.api.nvim_buf_get_name(0), } require("toggleterm").exec(table.concat(cmd, " ")) @@ -20,10 +20,10 @@ end, { vim.keymap.set("n", "fj", function() local cmd = { - "nix-instantiate", - "--eval", - "--strict", + "nix", + "eval", "--json", + "--file", vim.api.nvim_buf_get_name(0), "|", "jq",