From 72deca95951b5faa5762715f3b8d267d9c0962b3 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Thu, 28 Dec 2023 00:32:09 +0100 Subject: [PATCH] wezterm: exec takes a handler now --- home/config/nvim/nifoc/repl.fnl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/home/config/nvim/nifoc/repl.fnl b/home/config/nvim/nifoc/repl.fnl index fe2c17f..ed7f1d4 100644 --- a/home/config/nvim/nifoc/repl.fnl +++ b/home/config/nvim/nifoc/repl.fnl @@ -7,7 +7,11 @@ program (program-fn)] (each [_ value (ipairs program)] (table.insert args value)) - (wezterm.exec args))) + (wezterm.exec args + (fn [result] + (when (not= result.code 0) + (vim.notify "wezterm: Error opening split window" + vim.log.levels.ERROR [])))))) (local elixir #[(exe :iex)]) (local erlang #[(exe :erl)])