mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 03:20:08 +02:00
plugins/competitest: init
Add support for competitest.nvim, a neovim plugin for Competitive Programming.
This commit is contained in:
parent
8f9e35481f
commit
e2e7258267
3 changed files with 337 additions and 0 deletions
77
tests/test-sources/plugins/utils/competitest.nix
Normal file
77
tests/test-sources/plugins/utils/competitest.nix
Normal file
|
@ -0,0 +1,77 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.competitest.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.competitest = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
local_config_file_name = ".competitest.lua";
|
||||
save_current_file = true;
|
||||
save_all_files = false;
|
||||
compile_directory = ".";
|
||||
compile_command = {
|
||||
c = {
|
||||
exec = "gcc";
|
||||
args = ["-Wall" "$(FNAME)" "-o" "$(FNOEXT)"];
|
||||
};
|
||||
cpp = {
|
||||
exec = "g++";
|
||||
args = ["-Wall" "$(FNAME)" "-o" "$(FNOEXT)"];
|
||||
};
|
||||
rust = {
|
||||
exec = "rustc";
|
||||
args = ["$(FNAME)"];
|
||||
};
|
||||
java = {
|
||||
exec = "javac";
|
||||
args = ["$(FNAME)"];
|
||||
};
|
||||
};
|
||||
running_directory = ".";
|
||||
run_command = {
|
||||
c = {exec = "./$(FNOEXT)";};
|
||||
cpp = {exec = "./$(FNOEXT)";};
|
||||
rust = {exec = "./$(FNOEXT)";};
|
||||
python = {
|
||||
exec = "python";
|
||||
args = ["$(FNAME)"];
|
||||
};
|
||||
java = {
|
||||
exec = "java";
|
||||
args = ["$(FNOEXT)"];
|
||||
};
|
||||
};
|
||||
multiple_testing = -1;
|
||||
maximum_time = 5000;
|
||||
output_compare_method = "squish";
|
||||
view_output_diff = false;
|
||||
|
||||
testcases_directory = ".";
|
||||
testcases_use_single_file = false;
|
||||
testcases_auto_detect_storage = true;
|
||||
testcases_single_file_format = "$(FNOEXT).testcases";
|
||||
testcases_input_file_format = "$(FNOEXT)_input$(TCNUM).txt";
|
||||
testcases_output_file_format = "$(FNOEXT)_output$(TCNUM).txt";
|
||||
|
||||
companion_port = 27121;
|
||||
receive_print_message = true;
|
||||
template_file = false;
|
||||
evaluate_template_modifiers = false;
|
||||
date_format = "%c";
|
||||
received_files_extension = "cpp";
|
||||
received_problems_path = "$(CWD)/$(PROBLEM).$(FEXT)";
|
||||
received_problems_prompt_path = true;
|
||||
received_contests_directory = "$(CWD)";
|
||||
received_contests_problems_path = "$(PROBLEM).$(FEXT)";
|
||||
received_contests_prompt_directory = true;
|
||||
received_contests_prompt_extension = true;
|
||||
open_received_problems = true;
|
||||
open_received_contests = true;
|
||||
replace_received_testcases = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue