CRAG666/code_runner.nvim

Failed to run `config` for code_runner.nvim

Closed this issue · 1 comments

屏幕截图 2023-08-06 151403
OS: Windows 10.0.22621
Neovim 0.10 Nightly

the configuration file of the code-runner:

{   
        "CRAG666/code_runner.nvim", 
        config = function()
            require("code_runner").setup()({
                filetype = {
                    python = "python3 -u",
                },
            })
        end,
        event = {"VeryLazy"}
},

Hi!

Could you remove the initial set of parentheses after setup? So, it would look like:

{ 
        "CRAG666/code_runner.nvim", 
        config = function()
            -- removed extra parentheses here!
            require("code_runner").setup({
                filetype = {
                    python = "python3 -u",
                },
            })
        end,
        event = {"VeryLazy"}
},

instead of:

{   
        "CRAG666/code_runner.nvim", 
        config = function()
            require("code_runner").setup()({
                filetype = {
                    python = "python3 -u",
                },
            })
        end,
        event = {"VeryLazy"}
},