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

code_runner.nvim is not working in neovim-v0.8.0-dev-1063-g2f385d17a0 #45

Closed NEX-S closed 2 years ago

NEX-S commented 2 years ago

Runcode is not working Runfile seems still working

my config file

use { 'CRAG666/code_runner.nvim',
requires = 'nvim-lua/plenary.nvim',
cmd = { 'RunFile', 'RunCode' },
config = [[
require "code_runner".setup {
mode = "float",
startinsert = true,
close_key = '<ESC>',
float = {
border = "single",
blend = 20,
},
filetype = {
python = "time python3 -u",
c = "cd $dir && gcc $fileName -std=gnu2x -I ./ -g -o ./bin/$fileNameWithoutExt -Wall && printf '\\n' && time ./bin/$fileNameWithoutExt",
php = "time php $fileName",
sh = "time sh $fileName",
html = function ()
local file = vim.fn.expand("%:t")
vim.fn.system("google-chrome-stable "..file)
end,
lua = "lua $fileName",
http = require "rest-nvim".run,
vim = function ()
vim.cmd "w | source $MYVIMRC | source %"
end,
markdown = function ()
vim.cmd "MarkdownPreviewToggle"
end,
},
}
]]
}
NEX-S commented 2 years ago

btw, I dont know difference between runfile and runcode

sigmaSd commented 2 years ago

you have to use :RunCode filetypehere for example :RunCode python is that what you're using?

sigmaSd commented 2 years ago

ah it might be a bug actually

RunCode if it has no arguments is supposed to run the project command