Skip to content

Commit

Permalink
fix: add . to args for ripgrep to make it work on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 16, 2021
1 parent 52d814d commit 03fc95a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/todo-comments/search.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ function M.search(cb)
return
end

local args = vim.deepcopy(Config.options.search.args)
table.insert(args, Config.search_regex)
local args = vim.tbl_flatten({ Config.options.search.args, Config.search_regex, "." })
Job
:new({
command = command,
Expand Down

0 comments on commit 03fc95a

Please sign in to comment.