summaryrefslogtreecommitdiff
path: root/lua/core/which-key.lua
diff options
context:
space:
mode:
authorrebuilt <[email protected]>2021-07-25 13:39:33 +0200
committerGitHub <[email protected]>2021-07-25 11:39:33 +0000
commit47c44ae248084bcd83e6b917ef0f87e092c66903 (patch)
tree975a1e13b7675d834dafd3b31b4af3c4d0b55a71 /lua/core/which-key.lua
parentc94aac07cd26c4391fe73f2745527d529834ad6b (diff)
Move leader keybinding into the whichkey config (#1089)
Diffstat (limited to 'lua/core/which-key.lua')
-rw-r--r--lua/core/which-key.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/lua/core/which-key.lua b/lua/core/which-key.lua
index 1126bea5..55db694c 100644
--- a/lua/core/which-key.lua
+++ b/lua/core/which-key.lua
@@ -68,6 +68,29 @@ M.config = function()
["e"] = { "<cmd>lua require'core.nvimtree'.toggle_tree()<CR>", "Explorer" },
["f"] = { "<cmd>Telescope find_files<CR>", "Find File" },
["h"] = { '<cmd>let @/=""<CR>', "No Highlight" },
+ b = {
+ name = "Buffers",
+ j = { "<cmd>BufferPick<cr>", "jump to buffer" },
+ f = { "<cmd>Telescope buffers<cr>", "Find buffer" },
+ w = { "<cmd>BufferWipeout<cr>", "wipeout buffer" },
+ e = {
+ "<cmd>BufferCloseAllButCurrent<cr>",
+ "close all but current buffer",
+ },
+ h = { "<cmd>BufferCloseBuffersLeft<cr>", "close all buffers to the left" },
+ l = {
+ "<cmd>BufferCloseBuffersRight<cr>",
+ "close all BufferLines to the right",
+ },
+ D = {
+ "<cmd>BufferOrderByDirectory<cr>",
+ "sort BufferLines automatically by directory",
+ },
+ L = {
+ "<cmd>BufferOrderByLanguage<cr>",
+ "sort BufferLines automatically by language",
+ },
+ },
p = {
name = "Packer",
c = { "<cmd>PackerCompile<cr>", "Compile" },