From e2400475f2fdd5a9feec08c9eeaafa6662ed6b55 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Mon, 11 Jul 2022 09:23:41 -0400 Subject: [PATCH] fix: nvim headless failing on darwin --- .../darwin/hammerspoon/Spoons/MoveWindow.spoon/worklayout.lua | 2 +- modules/editor/neovim/default.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/darwin/hammerspoon/Spoons/MoveWindow.spoon/worklayout.lua b/modules/darwin/hammerspoon/Spoons/MoveWindow.spoon/worklayout.lua index c7cc53d..7161ad9 100644 --- a/modules/darwin/hammerspoon/Spoons/MoveWindow.spoon/worklayout.lua +++ b/modules/darwin/hammerspoon/Spoons/MoveWindow.spoon/worklayout.lua @@ -41,7 +41,7 @@ function worklayout() local u = hs.geometry.unitrect -- set the layout local left = { - { "Alacritty", nil, WORK_LEFT_MONITOR, u(0, 0, 1, 1), nil, nil, visible = true }, + -- { "Alacritty", nil, WORK_LEFT_MONITOR, u(0, 0, 1, 1), nil, nil, visible = true }, } local right = { { "Slack", nil, WORK_RIGHT_MONITOR, u(0, 0, 1, 1), nil, nil, visible = true }, diff --git a/modules/editor/neovim/default.nix b/modules/editor/neovim/default.nix index 7af1d68..c2edf52 100644 --- a/modules/editor/neovim/default.nix +++ b/modules/editor/neovim/default.nix @@ -36,7 +36,7 @@ home.activation.nvimPackerSync = config.home-manager.users.${config.user}.lib.dag.entryAfter [ "writeBoundary" ] '' - $DRY_RUN_CMD nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync' + $DRY_RUN_CMD ${pkgs.neovim}/bin/nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync' ''; };