Skip to content

Commit 2f20b35

Browse files
author
jghauser
committed
refactor: rename argument key for commands
1 parent 359fef2 commit 2f20b35

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lua/papis/at-cursor/init.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ local module_subcommands = {
116116
end
117117
end,
118118
complete = function(subcmd_arg_lead)
119-
local reload_args = {
119+
local at_cursor_args = {
120120
"open-file",
121121
"open-note",
122122
"edit",
123123
"show-popup",
124124
}
125-
return vim.iter(reload_args)
125+
return vim.iter(at_cursor_args)
126126
:filter(function(install_arg)
127127
return install_arg:find(subcmd_arg_lead) ~= nil
128128
end)

lua/papis/debug/init.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ local module_subcommands = {
2121
end
2222
end,
2323
complete = function(subcmd_arg_lead)
24-
local reload_args = {
24+
local debug_args = {
2525
"start-watchers",
2626
"stop-watchers",
2727
"info",
2828
}
29-
return vim.iter(reload_args)
29+
return vim.iter(debug_args)
3030
:filter(function(install_arg)
3131
return install_arg:find(subcmd_arg_lead) ~= nil
3232
end)

0 commit comments

Comments
 (0)