From 905e22a7127f5a37a06b698b081247234e5e0804 Mon Sep 17 00:00:00 2001 From: Valeriy Filippov Date: Thu, 2 Apr 2026 18:14:54 +0300 Subject: [PATCH] nvim: todo coments in hidden folders --- nvim/lua/plugins/todo-comments.lua | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/nvim/lua/plugins/todo-comments.lua b/nvim/lua/plugins/todo-comments.lua index c1681c2..e45be9f 100644 --- a/nvim/lua/plugins/todo-comments.lua +++ b/nvim/lua/plugins/todo-comments.lua @@ -7,5 +7,20 @@ return { -- your configuration comes here -- or leave it empty to use the default settings -- refer to the configuration section below - } + search = { + command = "rg", + args = { + "--color=never", + "--no-heading", + "--with-filename", + "--line-number", + "--column", + "--hidden", + }, + -- regex that will be used to match keywords. + -- don't replace the (KEYWORDS) placeholder + pattern = [[\b(KEYWORDS):]], -- ripgrep regex + -- pattern = [[\b(KEYWORDS)\b]], -- match without the extra colon. You'll likely get false positives + }, + }, }