fix code runner

This commit is contained in:
asep komarudin 2023-03-05 20:11:50 +07:00
parent 418a659142
commit a44ddd6365
2 changed files with 19 additions and 11 deletions

View file

@ -116,5 +116,13 @@ vim.g.pcode_whichkey = {
-- https://github.com/CRAG666/code_runner.nvim
vim.g.pcode_coderunner = {
java = "cd $dir && javac $fileName && java $fileNameWithoutExt",
python = "python3 -u",
typescript = "deno run",
rust = "cd $dir && rustc $fileName && $dir/$fileNameWithoutExt",
-- cpp="gcc $fileName -lstdc++ -o $fileNameWithoutExt && $fileNameWithoutExt"
cpp = "g++ $fileName -o $fileNameWithoutExt && $dir/$fileNameWithoutExt",
scss = "sass $dir/$fileName $dir/$fileNameWithoutExt.css",
javascript = "node $dir/$fileName",
go = "go run $fileName",
}