Skip to content

Commit

Permalink
fix: todo-comments regex
Browse files Browse the repository at this point in the history
  • Loading branch information
TwIStOy committed Nov 29, 2023
1 parent 6219f74 commit 9478c57
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/conf/plugins/edit/todo-comments-nvim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function actions() {
id: "todo-comments.goto-next-todo",
title: "Goto next todo",
callback: () => {
luaRequire("todo-comments").just_next();
luaRequire("todo-comments").jump_next();
},
keys: "]t",
description: "jump-next-todo",
Expand All @@ -43,7 +43,7 @@ function actions() {
id: "todo-comments.goto-previous-todo",
title: "Goto previous todo",
callback: () => {
luaRequire("todo-comments").just_prev();
luaRequire("todo-comments").jump_prev();
},
keys: "[t",
description: "jump-prev-todo",
Expand All @@ -56,14 +56,17 @@ const spec: PluginOpts = {
lazy: {
event: "BufReadPost",
cmd: ["TodoTrouble", "TodoTelescope"],
dependencies: ["nvim-lua/plenary.nvim"],
opts: {
highlight: { keyword: "wide_bg", pattern: "(KEYWORDS)([^)]*):" },
search: { pattern: "(KEYWORDS)([^)]*):" },
highlight: { keyword: "wide_bg", pattern: "(KEYWORDS)\\([^)]*\\):" },
search: { pattern: "(KEYWORDS)\\([^)]*\\):" },
keywords: {
HACK: { alt: ["UNSAFE"] },
},
},
config: true,
config: (_, opts) => {
luaRequire("todo-comments").setup(opts);
},
},
};

Expand Down

0 comments on commit 9478c57

Please sign in to comment.