CRAG666 / code_runner.nvim

Neovim plugin.The best code runner you could have, it is like the one in vscode but with super powers, it manages projects like in intellij but without being slow
MIT License
533 stars 38 forks source link

How to keep terminal running after execution? #57

Closed MustafaLinux closed 10 months ago

MustafaLinux commented 1 year ago

Hi, I want the terminal to keep running after the execution is finished. And it will be nicer to make the plugin doesn't close the old tab and create new terminal every time it runs, rather just past the file type command with absolute path and run it, and keep the terminal open which let me see the previous output and compare with the old one.

In short, I want to make it function like the one in vscode.

CRAG666 commented 1 year ago

Of course you can achieve this, simply use my other plugin for the handling of the terminal https://github.com/CRAG666/betterTerm.nvim

  vim.keymap.set("n", "<leader>e", function()
    require("betterTerm").send(require("code_runner.commands").get_filetype_command(), 1, false)
  end, { desc = "Excute File" })

This is just what you need, assign the combination you like the most The ISSUE closes if this was helpful if we cannot segir iterando @MustafaLinux thanks

MustafaLinux commented 1 year ago

Thank you, I didn't know about that. But although it keeps the terminal running, it's still refreshing every time I run it. Any idea how I can prevent that?

Edit: the size doesn't change even when I change the value on betterTerm should I open an issue there?

CRAG666 commented 1 year ago

If there will be a problem

CRAG666 commented 1 year ago

@MustafaLinux A better terminal has already been implemented natively, so this is the solution to this problem