Add files via upload

This commit is contained in:
Asep Komarudin 2023-01-15 00:17:41 +07:00 committed by GitHub
commit e53a643e3d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
54 changed files with 5285 additions and 0 deletions

24
lua/user/coderunner.lua Normal file
View file

@ -0,0 +1,24 @@
local status_ok, code_runner = pcall(require, "code_runner")
if not status_ok then
return
end
code_runner.setup({
-- put here the commands by filetype
filetype = {
java = "cd $dir && javac $fileName && java $fileNameWithoutExt",
python = "python3 -u",
typescript = "deno run",
javascript = "node $dir/$fileName",
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",
},
mode = "term",
focus = true,
startinsert = true,
term = {
position = "vert",
size = 50,
},
})