code_runner.nvim
code_runner.nvim copied to clipboard
<ESC> will cause some problem in code_runner.nvim
my code_runner config
require "code_runner".setup {
mode = "float",
startinsert = false,
float = {
border = "single",
blend = 30,
},
filetype = {
python = "time python3 -u",
c = "cd $dir && gcc $fileName -o $fileNameWithoutExt -Wall && time ./$fileNameWithoutExt && rm $fileNameWithoutExt",
php = "time php $fileName",
sh = "time sh $fileName",
html = "time google-chrome-stable $fileName",
lua = "lua $fileName",
},
}
after floating windows popup and press <ESC>
E5108: Error executing lua [string ":lua"]:1: Expected Lua number
stack traceback:
[C]: in function 'nvim_win_close'
[string ":lua"]:1: in main chunk
Press ENTER or type command to continue