1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 11:36:07 +01:00
nixvim/tests/test-sources/plugins/by-name/leetcode/default.nix
saygo-png 79d53a50e2 tests: use __empty and __raw
Signed-off-by: saygo-png <saygo.mail@proton.me>
2025-11-05 21:26:13 +00:00

90 lines
1.9 KiB
Nix

{ lib, ... }:
{
empty = {
plugins.leetcode.enable = true;
};
example = {
plugins.leetcode = {
enable = true;
settings = {
lang = "rust";
storage = {
home = "~/projects/leetcode";
cache = lib.nixvim.mkRaw "vim.fn.stdpath('cache') .. '/leetcode'";
};
};
};
};
defaults = {
plugins.leetcode = {
enable = true;
settings = {
arg = "leetcode.nvim";
lang = "cpp";
cn = {
enabled = false;
translator = true;
translate_problems = true;
};
storage = {
home = lib.nixvim.mkRaw "vim.fn.stdpath('data') .. '/leetcode'";
cache = lib.nixvim.mkRaw "vim.fn.stdpath('cache') .. '/leetcode'";
};
plugins = {
non_standalone = false;
};
logging = true;
injector.__empty = { };
cache = {
update_interval = 60 * 60 * 24 * 7;
};
editor = {
reset_previous_code = true;
fold_imports = true;
};
console = {
open_on_runcode = true;
dir = "row";
size = {
width = "90%";
height = "75%";
};
result = {
size = "60%";
};
testcase = {
virt_text = true;
size = "40%";
};
};
description = {
position = "left";
width = "40%";
show_stats = true;
};
picker = {
provider.__raw = "nil";
};
hooks = {
"enter" = { };
"question_enter" = { };
"leave" = { };
};
keys = {
toggle = "q";
confirm = "<CR>";
reset_testcases = "r";
use_testcase = "U";
focus_testcases = "H";
focus_result = "L";
};
theme.__empty = { };
image_support = false;
};
};
};
}