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
534 stars 38 forks source link

[help wanted] how to disable reload when RunCode #112

Closed shellRaining closed 3 months ago

shellRaining commented 4 months ago

auto reload indeed very convenient when solve algorithm problem, but sometimes I just want to run this code once. may I ask how to disable this feature? thanks

CRAG666 commented 4 months ago

Most languages ​​do not have automatic reload enabled. Can you be more specific?

shellRaining commented 4 months ago

I use javascript to solve some algorithm problem, when I write

function sum(a, b) {
  return a + b
}
console(sum(1, 2))

and use command RunCode, the result will show, then change the origin file, the code will rerun

rokbot commented 4 months ago

In your code runner plugin config setup add the key hot_reload :

require('code_runner').setup({
hot_reload = false,
filetype = {