telescope: added 1, 2, 3, 4, 5 keybindings

This commit is contained in:
Tigor Hutasuhut 2024-07-24 10:10:01 +07:00
parent c0f127392c
commit 163fa19c4d

10
lua/plugins/telescope.lua Normal file
View file

@ -0,0 +1,10 @@
return {
"nvim-telescope/telescope.nvim",
keys = {
{ "1", "<cmd>Telescope buffers sort_mru=true sort_lastused=true<cr>", desc = "Buffers" },
{ "2", LazyVim.pick "files", desc = "Find Files (Root Dir)" },
{ "3", LazyVim.pick "live_grep", desc = "Grep (Root Dir)" },
{ "4", "<cmd>Telescope quickfix<cr>", desc = "Quickfix List" },
{ "5", LazyVim.pick("oldfiles", { cwd = vim.uv.cwd() }), desc = "Recent (cwd)" },
},
}