wezterm: exec takes a handler now
This commit is contained in:
parent
4d89d45b14
commit
72deca9595
1 changed files with 5 additions and 1 deletions
|
@ -7,7 +7,11 @@
|
||||||
program (program-fn)]
|
program (program-fn)]
|
||||||
(each [_ value (ipairs program)]
|
(each [_ value (ipairs program)]
|
||||||
(table.insert args value))
|
(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 elixir #[(exe :iex)])
|
||||||
(local erlang #[(exe :erl)])
|
(local erlang #[(exe :erl)])
|
||||||
|
|
Loading…
Reference in a new issue