plugins/debugprint: switch to mkNeovimPlugin

This commit is contained in:
Gaetan Lepage 2024-04-07 14:27:25 +02:00 committed by Gaétan Lepage
parent 192b404e41
commit b9f211bbee
2 changed files with 175 additions and 69 deletions

View file

@ -7,21 +7,43 @@
plugins.debugprint = {
enable = true;
createKeymaps = true;
createCommands = true;
moveToDebugline = false;
displayCounter = true;
displaySnippet = true;
filetypes = {
python = {
left = "print(f'";
right = "')";
midVar = "{";
rightVar = "}')";
settings = {
keymaps = {
normal = {
plain_below = "g?p";
plain_above = "g?P";
variable_below = "g?v";
variable_above = "g?V";
variable_below_alwaysprompt.__raw = "nil";
variable_above_alwaysprompt.__raw = "nil";
textobj_below = "g?o";
textobj_above = "g?O";
toggle_comment_debug_prints.__raw = "nil";
delete_debug_prints.__raw = "nil";
};
visual = {
variable_below = "g?v";
variable_above = "g?V";
};
};
commands = {
toggle_comment_debug_prints = "ToggleCommentDebugPrints";
delete_debug_prints = "DeleteDebugPrints";
};
move_to_debugline = false;
display_counter = true;
display_snippet = true;
filetypes = {
python = {
left = "print(f'";
right = "')";
mid_var = "{";
right_var = "}')";
};
};
ignore_treesitter = false;
print_tag = "DEBUGPRINT";
};
ignoreTreesitter = false;
printTag = "DEBUGPRINT";
};
};
}