blob: 052f9dd318ae78be5cefe5b4eec8fbc3c25710e3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
vim.api.nvim_create_user_command("Sailup", function ()
vim.fn.jobstart(
{"sail", "up", "-d"},
{
stdout_buffered = true,
stderr_buffered = true,
on_exit = function ()
require("notify").notify("Sail up is done", "info", {})
end,
on_stdout = function (_, data)
if data then
P(data)
end
end,
on_stderr = function (_, data)
if data then
P(data)
end
end,
}
)
end, {})
|