diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-08-05 09:02:11 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-08-05 09:02:55 +0200 |
| commit | 67f55ef388b18310c06219eb3207ba513673127a (patch) | |
| tree | e1dc45f9b52ed39369f451ab5ac4ddcf30e5aa3e /lua/alpha/scratchs/sample.lua | |
| parent | 0c6c7768eb0fe0fd496c936ecb348c694180fc1a (diff) | |
| download | nvim-conf-67f55ef388b18310c06219eb3207ba513673127a.tar.gz nvim-conf-67f55ef388b18310c06219eb3207ba513673127a.zip | |
add temporary laravel plugin scratch
Diffstat (limited to 'lua/alpha/scratchs/sample.lua')
| -rw-r--r-- | lua/alpha/scratchs/sample.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lua/alpha/scratchs/sample.lua b/lua/alpha/scratchs/sample.lua new file mode 100644 index 0000000..052f9dd --- /dev/null +++ b/lua/alpha/scratchs/sample.lua @@ -0,0 +1,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, {}) |