From ea9bb853bd1bf3c57708f8500820c96cd1821590 Mon Sep 17 00:00:00 2001 From: Segcolt <9hmbzr275@mozmail.com> Date: Sun, 22 Sep 2024 23:29:58 -0300 Subject: [PATCH] Change how competitest works --- lua/plugins/competitest.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lua/plugins/competitest.lua b/lua/plugins/competitest.lua index 9ab3435..b57280a 100644 --- a/lua/plugins/competitest.lua +++ b/lua/plugins/competitest.lua @@ -7,9 +7,14 @@ return { -- c = "~/.config/nvim/templates/template.c" -- } template_file = "~/.config/nvim/templates/template.$(FEXT)", + received_contests_directory = "/tmp/Competitive Programming/$(JUDGE)/$(CONTEST)", compile_command = { - c = { exec = "gcc", args = { "-Wall", "-g", "-DDEBUG", "-fsanitize=address", "$(FNAME)", "-o", "$(FNOEXT)" } }, - cpp = { exec = "g++", args = { "-Wall", "-g", "-DDEBUG", "-fsanitize=address", "$(FNAME)", "-o", "$(FNOEXT)" } }, + c = { exec = "gcc", args = { "-Wall", "-g", "-DDEBUG", "-fsanitize=address,undefined", "$(FNAME)", "-o", "$(FNOEXT).out" } }, + cpp = { exec = "g++", args = { "-Wall", "-g", "-DDEBUG", "-fsanitize=address,undefined", "$(FNAME)", "-o", "$(FNOEXT).out" } }, }, + run_command = { + c = { exec = "./$(FNOEXT).out" }, + cpp = { exec = "./$(FNOEXT).out" } + } } end }