mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 02:50:03 +08:00
perf(luadoc): add doc for default_tool function
This commit is contained in:
parent
7725ff275c
commit
2b9f7b4cb9
@ -99,7 +99,13 @@ search_tools.i.default_fopts = {}
|
|||||||
search_tools.i.smart_case = {}
|
search_tools.i.smart_case = {}
|
||||||
search_tools.i.ignore_case = {'/I'}
|
search_tools.i.ignore_case = {'/I'}
|
||||||
|
|
||||||
|
--- @return string default_exe the default executable of searching tool
|
||||||
|
--- @return table default_opt default searching option
|
||||||
|
--- @return table default_ropt default ropt of tool
|
||||||
|
--- @return table expr_opt expr_opt of searching tool
|
||||||
|
--- @return table fixed_string_opt fixed string option of searching tool
|
||||||
|
--- @return table ignore_case ignore case option
|
||||||
|
--- @return table smart_case smart case option
|
||||||
function M.default_tool()
|
function M.default_tool()
|
||||||
if search_tools.default_exe == nil then
|
if search_tools.default_exe == nil then
|
||||||
for _, t in ipairs(vim.g.spacevim_search_tools or {'rg', 'ag', 'pt', 'ack', 'grep'}) do
|
for _, t in ipairs(vim.g.spacevim_search_tools or {'rg', 'ag', 'pt', 'ack', 'grep'}) do
|
||||||
@ -116,7 +122,7 @@ function M.default_tool()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
if search_tools.default_exe == nil then
|
if search_tools.default_exe == nil then
|
||||||
return '', '', '', '', '', '', ''
|
return '', {}, {}, {}, {}, {}, {}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
return search_tools.default_exe,
|
return search_tools.default_exe,
|
||||||
|
Loading…
Reference in New Issue
Block a user