update default code runner

This commit is contained in:
asep komarudin 2023-03-06 13:27:50 +07:00
parent a9e51972a9
commit aa00ff9942
3 changed files with 13 additions and 17 deletions

View file

@ -115,14 +115,7 @@ vim.g.pcode_whichkey = {
}
-- https://github.com/CRAG666/code_runner.nvim
-- ready default java, python, typescript, javascript, rust, cpp, scss
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",
}