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
534 stars 38 forks source link

Failed to run `config` for code_runner.nvim #93

Closed wwWT000 closed 11 months ago

wwWT000 commented 1 year ago

屏幕截图 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"}
},
dorrajmachai commented 1 year ago

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"}
},