mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
fix(picker.help): fixed help tag preview search string
This commit is contained in:
parent
1c1876ab27
commit
773e584d85
2 changed files with 2 additions and 1 deletions
|
@ -7,6 +7,7 @@ local uv = vim.uv or vim.loop
|
|||
---@field git_log fun(opts?: snacks.picker.git.log.Config): snacks.Picker
|
||||
---@field git_log_file fun(opts?: snacks.picker.git.log.Config): snacks.Picker
|
||||
---@field git_log_line fun(opts?: snacks.picker.git.log.Config): snacks.Picker
|
||||
---@field git_status fun(opts?: snacks.picker.Config): snacks.Picker
|
||||
|
||||
---@param opts snacks.picker.git.files.Config
|
||||
---@type snacks.picker.finder
|
||||
|
|
|
@ -49,7 +49,7 @@ function M.help(opts)
|
|||
text = fields[1],
|
||||
tag = fields[1],
|
||||
file = help_files[fields[2]],
|
||||
search = fields[3],
|
||||
search = "/\\V" .. fields[3]:sub(2),
|
||||
}
|
||||
if item.file then
|
||||
cb(item)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue