plenary.nvim icon indicating copy to clipboard operation
plenary.nvim copied to clipboard

Finishing a powershell job opens a "terminal"

Open MordechaiHadad opened this issue 4 years ago • 0 comments

So just like doing some bash jobs i want to open a new powershell job, but unlike bash i get a weird behavior where it does whatever job i want it to BUT opens a "terminal"? at the end: hi When i write exit to exit this "terminal" it literally closes my terminal tab... why?

  • Code
function lspmanager.test(hi)
    job:new({
        command = 'powershell',
        cwd = '.',
        args = {'-Command', [[
        New-Item -Name "hi" -ItemType "directory"
        exit 0
        ]]},
        on_exit = function (j, return_val)
            if return_val == 0 then
                print("lmao")
            end
        end
    }):start()
end

MordechaiHadad avatar Aug 29 '21 14:08 MordechaiHadad