Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ return check_cli_wrap(function(opts)
action.options.query = { action.options.query }
end
vim.list_extend(args, action.options.query)
if action.options.project_root == "" then
action.options.project_root = nil
end
if action.options.project_root ~= nil then
action.options.project_root = vim.fs.normalize(action.options.project_root)
if
Expand Down Expand Up @@ -160,14 +163,14 @@ return check_cli_wrap(function(opts)
},
project_root = {
type = "string",
description = "Project path to search within (must be from 'ls' results)",
description = "Project path to search within (must be from 'ls' results). Use empty string for the current project.",
},
},
required = { "query" },
required = { "query", "count", "project_root" },
additionalProperties = false,
},
},
required = { "command" },
required = { "command", "options" },
additionalProperties = false,
},
strict = true,
Expand Down