mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 17:28:39 +02:00
plugins/todo-comments: migrate to mkNeovimPlugin
This commit is contained in:
parent
78fc4be6a8
commit
379ae77a76
2 changed files with 551 additions and 371 deletions
|
@ -7,164 +7,182 @@
|
|||
plugins.todo-comments = {
|
||||
enable = true;
|
||||
|
||||
signs = true;
|
||||
signPriority = 8;
|
||||
settings = {
|
||||
signs = true;
|
||||
sign_priority = 8;
|
||||
|
||||
keywords = {
|
||||
FIX = {
|
||||
icon = " ";
|
||||
color = "error";
|
||||
alt = [
|
||||
"FIXME"
|
||||
"BUG"
|
||||
"FIXIT"
|
||||
"ISSUE"
|
||||
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"
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
gui_style = {
|
||||
fg = "NONE";
|
||||
bg = "BOLD";
|
||||
};
|
||||
|
||||
merge_keywords = true;
|
||||
|
||||
highlight = {
|
||||
multiline = true;
|
||||
multiline_pattern = "^.";
|
||||
multiline_context = 10;
|
||||
before = "";
|
||||
keyword = "wide";
|
||||
after = "fg";
|
||||
pattern = ''.*<(KEYWORDS)\s*:'';
|
||||
comments_only = true;
|
||||
max_line_len = 400;
|
||||
exclude = [ ];
|
||||
};
|
||||
|
||||
colors = {
|
||||
error = [
|
||||
"DiagnosticError"
|
||||
"ErrorMsg"
|
||||
"#DC2626"
|
||||
];
|
||||
signs = false;
|
||||
};
|
||||
TODO = {
|
||||
icon = " ";
|
||||
color = "info";
|
||||
};
|
||||
HACK = {
|
||||
icon = " ";
|
||||
color = "warning";
|
||||
};
|
||||
WARN = {
|
||||
icon = " ";
|
||||
color = "warning";
|
||||
alt = [
|
||||
"WARNING"
|
||||
"XXX"
|
||||
warning = [
|
||||
"DiagnosticWarn"
|
||||
"WarningMsg"
|
||||
"#FBBF24"
|
||||
];
|
||||
info = [
|
||||
"DiagnosticInfo"
|
||||
"#2563EB"
|
||||
];
|
||||
hint = [
|
||||
"DiagnosticHint"
|
||||
"#10B981"
|
||||
];
|
||||
default = [
|
||||
"Identifier"
|
||||
"#7C3AED"
|
||||
];
|
||||
test = [
|
||||
"Identifier"
|
||||
"#FF00FF"
|
||||
];
|
||||
};
|
||||
PERF = {
|
||||
icon = " ";
|
||||
alt = [
|
||||
"OPTIM"
|
||||
"PERFORMANCE"
|
||||
"OPTIMIZE"
|
||||
|
||||
search = {
|
||||
command = "rg";
|
||||
args = [
|
||||
"--color=never"
|
||||
"--no-heading"
|
||||
"--with-filename"
|
||||
"--line-number"
|
||||
"--column"
|
||||
];
|
||||
};
|
||||
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):'';
|
||||
};
|
||||
|
||||
keymaps = {
|
||||
todoQuickFix.key = "<C-a>";
|
||||
todoLocList = {
|
||||
key = "<C-f>";
|
||||
cwd = "~/projects/foobar";
|
||||
keywords = "TODO,FIX";
|
||||
options.silent = true;
|
||||
};
|
||||
todoTrouble = {
|
||||
key = "<C-t>";
|
||||
keywords = "TODO,FIX";
|
||||
};
|
||||
todoTelescope = {
|
||||
key = "<C-e>";
|
||||
cwd = "~/projects/foobar";
|
||||
pattern = ''\b(KEYWORDS):'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
keymapsOptions = {
|
||||
plugins.todo-comments = {
|
||||
enable = true;
|
||||
keymaps-options = {
|
||||
plugins = {
|
||||
trouble.enable = true;
|
||||
telescope.enable = true;
|
||||
|
||||
keymaps = {
|
||||
todoTrouble = {
|
||||
key = "<C-f>";
|
||||
keywords = "TODO,FIX";
|
||||
options = {
|
||||
desc = "Description for todoTrouble";
|
||||
silent = true;
|
||||
todo-comments = {
|
||||
enable = true;
|
||||
|
||||
keymaps = {
|
||||
todoQuickFix.key = "<C-a>";
|
||||
todoLocList = {
|
||||
key = "<C-f>";
|
||||
cwd = "~/projects/foobar";
|
||||
keywords = [
|
||||
"TODO"
|
||||
"FIX"
|
||||
];
|
||||
options.silent = true;
|
||||
};
|
||||
todoTrouble = {
|
||||
key = "<C-f>";
|
||||
keywords = [
|
||||
"TODO"
|
||||
"FIX"
|
||||
];
|
||||
options = {
|
||||
desc = "Description for todoTrouble";
|
||||
silent = true;
|
||||
};
|
||||
};
|
||||
todoTelescope = {
|
||||
key = "<C-e>";
|
||||
cwd = "~/projects/foobar";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
withoutRipgrep = {
|
||||
without-ripgrep = {
|
||||
plugins.todo-comments = {
|
||||
enable = true;
|
||||
|
||||
ripgrepPackage = null;
|
||||
};
|
||||
};
|
||||
|
||||
highlight-pattern-list = {
|
||||
plugins.todo-comments = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
highlight = {
|
||||
pattern = [ ".*<(KEYWORDS)\s*:" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue