1
0
Fork 0

wezterm: exec takes a handler now
All checks were successful
Update Flake / update-flake (push) Successful in 2m30s
Build / build-amd64-linux (push) Successful in 43s
Build / build-arm64-linux (push) Successful in 1m55s

This commit is contained in:
Daniel Kempkens 2023-12-28 00:32:09 +01:00
parent 4d89d45b14
commit 72deca9595
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM

View file

@ -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)])