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

[help wanted] how to disable reload when RunCode

Open shellRaining opened this issue 1 year ago • 3 comments

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

shellRaining avatar Apr 22 '24 08:04 shellRaining

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

CRAG666 avatar Apr 25 '24 23:04 CRAG666

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

shellRaining avatar Apr 26 '24 00:04 shellRaining

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

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

rokbot avatar May 16 '24 21:05 rokbot