mirror of
https://github.com/folke/snacks.nvim
synced 2025-08-04 18:58:12 +00:00
feat(picker): added opts.rtp
(bool) to find/grep over files in the rtp. See #680
This commit is contained in:
parent
3fb111090e
commit
9d5d3bdb17
4 changed files with 26 additions and 6 deletions
|
@ -198,6 +198,16 @@ function M.title(str)
|
|||
)
|
||||
end
|
||||
|
||||
function M.rtp()
|
||||
local ret = {} ---@type string[]
|
||||
vim.list_extend(ret, vim.api.nvim_get_runtime_file("", true))
|
||||
if package.loaded.lazy then
|
||||
local extra = require("lazy.core.util").get_unloaded_rtp("")
|
||||
vim.list_extend(ret, extra)
|
||||
end
|
||||
return ret
|
||||
end
|
||||
|
||||
---@param str string
|
||||
---@return string text, string[] args
|
||||
function M.parse(str)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue