fix: correct frecency picker invocation in dashboard and key mappings

This commit is contained in:
2024-09-14 17:26:39 -04:00
parent 0affef0abc
commit 725c3533a1
3 changed files with 18 additions and 3 deletions
+13
View File
@@ -515,6 +515,19 @@ function M.dump_buffer_to_table(register)
vim.fn.setreg(register, output)
end
---@function Function to open the frecency picker
---@return nil
function M.frecency_picker()
-- Trigger the picker
require("telescope").extensions.frecency.frecency()
-- Remove `A` character that is added by the picker
vim.api.nvim_feedkeys(
vim.api.nvim_replace_termcodes("<BS>", true, true, true),
"n",
false
)
end
---@function Function to reload the user's Neovim configuration
---@return nil
function M.reload_config()