Skip to content

Commit

Permalink
Clean luacheck warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisant996 committed Mar 10, 2024
1 parent 8c1f15a commit 4c237b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions completions/rg.lua
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ local rg_typeadd = clink.argmatcher():addarg({})
local rg_typeclear = clink.argmatcher():addarg({})
local rg_typenot = clink.argmatcher():addarg({"(rg", "--type-list", "|", "string", "replace", ":", "t)"})

rg_conditions = {
local rg__hide_unless = {
["--ignore"] = { "--no-ignore" },
["--ignore-dot"] = { "--no-ignore-dot" },
["--ignore-exclude"] = { "--no-ignore-exclude" },
Expand Down Expand Up @@ -505,5 +505,5 @@ clink.argmatcher("rg")
"--sort-files",
"--no-sort-files",
onarg = onarg_contains_opt,
function(_, _, _, _, user_data) clink.onfiltermatches(function(matches) return do_filter(matches, rg_conditions, user_data) end) end,
function(_, _, _, _, user_data) clink.onfiltermatches(function(matches) return do_filter(matches, rg__hide_unless, user_data) end) end,
})

0 comments on commit 4c237b7

Please sign in to comment.