mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 01:08:43 +02:00
tests/plugins: refactor (#235)
This commit is contained in:
parent
89f54be73a
commit
db5061b4db
38 changed files with 485 additions and 744 deletions
112
tests/test-sources/plugins/utils/todo-comments.nix
Normal file
112
tests/test-sources/plugins/utils/todo-comments.nix
Normal file
|
@ -0,0 +1,112 @@
|
|||
{
|
||||
# Empty configuration
|
||||
empty = {
|
||||
plugins.todo-comments.enable = true;
|
||||
};
|
||||
|
||||
# All the upstream default options of todo-comments
|
||||
defaults = {
|
||||
plugins.todo-comments = {
|
||||
enable = true;
|
||||
|
||||
signs = true;
|
||||
signPriority = 8;
|
||||
|
||||
keywords = {
|
||||
FIX = {
|
||||
icon = " ";
|
||||
color = "error";
|
||||
alt = ["FIXME" "BUG" "FIXIT" "ISSUE"];
|
||||
signs = false;
|
||||
};
|
||||
TODO = {
|
||||
icon = " ";
|
||||
color = "info";
|
||||
};
|
||||
HACK = {
|
||||
icon = " ";
|
||||
color = "warning";
|
||||
};
|
||||
WARN = {
|
||||
icon = " ";
|
||||
color = "warning";
|
||||
alt = ["WARNING" "XXX"];
|
||||
};
|
||||
PERF = {
|
||||
icon = " ";
|
||||
alt = ["OPTIM" "PERFORMANCE" "OPTIMIZE"];
|
||||
};
|
||||
NOTE = {
|
||||
icon = " ";
|
||||
color = "hint";
|
||||
alt = ["INFO"];
|
||||
};
|
||||
TEST = {
|
||||
icon = "⏲ ";
|
||||
color = "test";
|
||||
alt = ["TESTING" "PASSED" "FAILED"];
|
||||
};
|
||||
};
|
||||
|
||||
guiStyle = {
|
||||
fg = "NONE";
|
||||
bg = "BOLD";
|
||||
};
|
||||
|
||||
mergeKeywords = true;
|
||||
|
||||
highlight = {
|
||||
multiline = true;
|
||||
multilinePattern = "^.";
|
||||
multilineContext = 10;
|
||||
before = "";
|
||||
keyword = "wide";
|
||||
after = "fg";
|
||||
pattern = ''.*<(KEYWORDS)\s*:'';
|
||||
commentsOnly = true;
|
||||
maxLineLen = 400;
|
||||
exclude = [];
|
||||
};
|
||||
|
||||
colors = {
|
||||
error = ["DiagnosticError" "ErrorMsg" "#DC2626"];
|
||||
warning = ["DiagnosticWarn" "WarningMsg" "#FBBF24"];
|
||||
info = ["DiagnosticInfo" "#2563EB"];
|
||||
hint = ["DiagnosticHint" "#10B981"];
|
||||
default = ["Identifier" "#7C3AED"];
|
||||
test = ["Identifier" "#FF00FF"];
|
||||
};
|
||||
|
||||
search = {
|
||||
command = "rg";
|
||||
args = [
|
||||
"--color=never"
|
||||
"--no-heading"
|
||||
"--with-filename"
|
||||
"--line-number"
|
||||
"--column"
|
||||
];
|
||||
pattern = ''\b(KEYWORDS):'';
|
||||
};
|
||||
|
||||
keymapsSilent = true;
|
||||
|
||||
keymaps = {
|
||||
todoQuickFix.key = "<C-a>";
|
||||
todoLocList = {
|
||||
key = "<C-f>";
|
||||
cwd = "~/projects/foobar";
|
||||
keywords = "TODO,FIX";
|
||||
};
|
||||
todoTrouble = {
|
||||
key = "<C-t>";
|
||||
keywords = "TODO,FIX";
|
||||
};
|
||||
todoTelescope = {
|
||||
key = "<C-e>";
|
||||
cwd = "~/projects/foobar";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue