2022-03-07 13:05:28 +01:00
|
|
|
local wk = require("which-key")
|
2022-03-11 10:38:42 +01:00
|
|
|
local telescope = require("telescope")
|
2022-03-07 13:05:28 +01:00
|
|
|
local telescope_builtin = require("telescope.builtin")
|
|
|
|
|
|
|
|
local keys = {
|
|
|
|
f = {
|
|
|
|
name = "Fuzzy finder",
|
|
|
|
b = { telescope_builtin.buffers, "Open buffers" },
|
|
|
|
f = { telescope_builtin.git_files, "Git tracked files" },
|
|
|
|
F = { telescope_builtin.find_files, "Files" },
|
2022-03-07 13:10:56 +01:00
|
|
|
g = { telescope_builtin.live_grep, "Grep string" },
|
|
|
|
G = { telescope_builtin.grep_string, "Grep string under cursor" },
|
2022-03-11 10:38:42 +01:00
|
|
|
n = { telescope.extensions.notify.notify, "Notification history" },
|
2022-03-07 13:05:28 +01:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
wk.register(keys, { prefix = "<leader>" })
|