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

<ESC> will cause some problem in code_runner.nvim

Open NEX-S opened this issue 3 years ago • 0 comments

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

NEX-S avatar Jul 22 '22 13:07 NEX-S