21 lines
896 B
Lua
21 lines
896 B
Lua
require("which-key").register({
|
|
f = {
|
|
name = "file/find",
|
|
f = { "<cmd>Telescope find_files<cr>", "Find files" },
|
|
b = { "<cmd>Telescope buffers<cr>", "Find buffers" },
|
|
r = { "<cmd>Telescope oldfiles<cr>", "Find recent files" },
|
|
},
|
|
s = {
|
|
name = "search",
|
|
l = { "<cmd>Telescope current_buffer_fuzzy_find<cr>", "Search lines" },
|
|
g = { "<cmd>Telescope live_grep<cr>", "Live grep" },
|
|
c = { "<cmd>Telescope command_history<cr>", "Command history" },
|
|
C = { "<cmd>Telescope commands<cr>", "Commands" },
|
|
d = { "<cmd>Telescope diagnostics<cr>", "Diagnostics" },
|
|
h = { "<cmd>Telescope help_tags<cr>", "Help tags" },
|
|
k = { "<cmd>Telescope keymaps<cr>", "Keymaps" },
|
|
s = { "<cmd>Telescope lsp_document_symbols<cr>", "Symbols (Document)" },
|
|
S = { "<cmd>Telescope lsp_workspace_symbols<cr>", "Symbols (Workspace)" },
|
|
},
|
|
}, { prefix = "<leader>" })
|