mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
plugins/todo-comments: Allow to pass keymap options (#599)
This re-uses the keymap options defined in the keymaps module to allow to define the options of todo-comments key mappings. Fixes #598 Co-authored-by: gaetan@glepage.com
This commit is contained in:
parent
229fe85d6b
commit
e45be89f12
2 changed files with 35 additions and 12 deletions
|
@ -89,14 +89,13 @@
|
|||
pattern = ''\b(KEYWORDS):'';
|
||||
};
|
||||
|
||||
keymapsSilent = true;
|
||||
|
||||
keymaps = {
|
||||
todoQuickFix.key = "<C-a>";
|
||||
todoLocList = {
|
||||
key = "<C-f>";
|
||||
cwd = "~/projects/foobar";
|
||||
keywords = "TODO,FIX";
|
||||
options.silent = true;
|
||||
};
|
||||
todoTrouble = {
|
||||
key = "<C-t>";
|
||||
|
@ -109,4 +108,21 @@
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
keymapsOptions = {
|
||||
plugins.todo-comments = {
|
||||
enable = true;
|
||||
|
||||
keymaps = {
|
||||
todoTrouble = {
|
||||
key = "<C-f>";
|
||||
keywords = "TODO,FIX";
|
||||
options = {
|
||||
desc = "Description for todoTrouble";
|
||||
silent = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue