CRAG666/code_runner.nvim

How to run Lua code in buf/tab/etc

Closed this issue · 1 comments

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?

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