Feat(picker): implement custom picker function

Allows for automated picker selection and some special features to make using pickers easier
This commit is contained in:
2024-10-15 18:00:11 -04:00
parent 685ce4da70
commit 38ebed3b0a
3 changed files with 168 additions and 5 deletions
+8 -1
View File
@@ -925,10 +925,17 @@ M.misc = {
{ -- Telescope Find Files
lhs = "<leader><leader>",
rhs = function()
LazyVim.pick("files")()
require("data.func").pick()
end,
desc = "Find Files",
},
{ -- Grep files
lhs = "<leader>/",
rhs = function()
require("data.func").pick({ cmd = "live_grep" })
end,
desc = "Grep Files",
},
{ -- Exit Neovim
lhs = "<leader>Q",
rhs = "<cmd>lua require('data').func.exit()<cr>",