Return cursor to previous cursor position (#101)

`GoGet` and `GoMod` opens up a new split and move the cursor there.
If the cursor isn't moved back to the *.go buffer, `utils.restart`
will try to spawn gopls in the terminal split, which results in
gopls failed to restart properly.
pull/107/head
Mochammad Hanif R 3 years ago committed by GitHub
parent 058e748409
commit f5aa4a7046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -91,6 +91,9 @@ local run = function(cmd, opts)
end,
})
-- Return to previous cursor position
api.nvim_command("wincmd p")
-- uv.read_start(stdout, vim.schedule_wrap(on_stdout))
uv.read_start(stderr, function(err, data)

Loading…
Cancel
Save