mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
fix: python run windows and linux
This commit is contained in:
parent
35c170c09a
commit
af1dd1aa00
1 changed files with 5 additions and 1 deletions
|
@ -1,8 +1,12 @@
|
||||||
--typescript = "deno run",
|
--typescript = "deno run",
|
||||||
-- cpp="gcc $fileName -lstdc++ -o $fileNameWithoutExt && $fileNameWithoutExt"
|
-- cpp="gcc $fileName -lstdc++ -o $fileNameWithoutExt && $fileNameWithoutExt"
|
||||||
|
local pyrun = "python -u"
|
||||||
|
if vim.fn.has("win32") == 0 then
|
||||||
|
pyrun = "python3 -u"
|
||||||
|
end
|
||||||
local rfile = {
|
local rfile = {
|
||||||
java = "cd $dir && javac $fileName && java $fileNameWithoutExt",
|
java = "cd $dir && javac $fileName && java $fileNameWithoutExt",
|
||||||
python = "python -u",
|
python = pyrun,
|
||||||
typescript = "ts-node $dir/$fileName",
|
typescript = "ts-node $dir/$fileName",
|
||||||
rust = "cd $dir && rustc $fileName && $dir/$fileNameWithoutExt",
|
rust = "cd $dir && rustc $fileName && $dir/$fileNameWithoutExt",
|
||||||
cpp = "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir/$fileNameWithoutExt",
|
cpp = "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir/$fileNameWithoutExt",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue