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

How to run Lua code in buf/tab/etc #54

Closed RayJameson closed 1 year ago

RayJameson commented 1 year ago

Hello, thank you for your great plugin. I have a question: when I run my python code I can see output in tab/buf/toggleterm etc but when I run Lua code it's just this

image

my config looks like this (I use Packer):

{
    "CRAG666/code_runner.nvim",
    config = function()
        require("code_runner").setup({
            -- put here the commands by filetype
            startinsert = false,
            filetype = {
                java = "cd $dir && javac $fileName && java $fileNameWithoutExt",
                lua = "lua",
                python = "python3 -u",
                typescript = "deno run",
                rust = "cd $dir && rustc $fileName && $dir/$fileNameWithoutExt",
                javascript = "node",
                shellscript = "bash",
            },
        })
    end,
}

How to run Lua code in buf/tab not in this notification kinda looking window?

RayJameson commented 1 year ago

Looks like my config was broken, I did something and now it works as I wanted :D