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

@ -20,4 +20,6 @@
-- }
-- vim.g.pcode_footer = "PCode"
vim.g.pcode_model = 2 -- isi dengan 1 atau 2 untuk model dashboard
-- 1 startify model
-- 2 dashboard model
vim.g.pcode_model = 1 -- isi dengan 1 atau 2 untuk model dashboard

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",
}