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

<ESC> will cause some problem in code_runner.nvim #29

Closed NEX-S closed 2 years ago

NEX-S commented 2 years ago

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