Async Code Runner for Neovim
With nvim-plug:
require("plug").add({
{
"wsdjeg/code-runner.nvim",
depends = {
{ "wsdjeg/job.nvim" },
{ "wsdjeg/notify.nvim" },
},
},
})
require("code-runner").setup({
runners = {
lua = { exe = "lua", opt = { "-" }, usestdin = true },
},
enter_win = false,
})
- start default runner for current filetype:
lua require('code-runner').open()
- run specific command with code-runner:
lua require('code-runner').open('make test')
close()
: close code runner windowget(ft)
: get default runner for specific filetype