feat(telescope): added more mappings

This commit is contained in:
Folke Lemaitre 2022-12-31 18:05:33 +01:00
parent 772fa5aaa6
commit bce0744ca3
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -19,7 +19,13 @@ return {
{ {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
cmd = "Telescope", cmd = "Telescope",
keys = { { "<leader><space>", "<cmd>Telescope find_files<cr>", desc = "Find Files" } }, keys = {
{ "<leader><space>", "<cmd>Telescope find_files<cr>", desc = "Find Files" },
{ "<leader>ff", "<cmd>Telescope find_files<cr>", desc = "Find Files" },
{ "<leader>fr", "<cmd>Telescope oldfiles<cr>", desc = "Recent" },
{ "<leader>fb", "<cmd>Telescope buffers<cr>", desc = "Buffers" },
{ "<leader>/", "<cmd>Telescope live_grep<cr>", desc = "Find in Files (Grep)" },
},
config = true, config = true,
}, },
@ -28,6 +34,7 @@ return {
"folke/which-key.nvim", "folke/which-key.nvim",
event = "VeryLazy", event = "VeryLazy",
config = { config = {
show_help = false,
plugins = { spelling = true }, plugins = { spelling = true },
key_labels = { ["<leader>"] = "SPC" }, key_labels = { ["<leader>"] = "SPC" },
}, },