mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-31 15:19:26 +02:00
Move leader keybinding into the whichkey config (#1089)
This commit is contained in:
parent
c94aac07cd
commit
47c44ae248
3 changed files with 23 additions and 26 deletions
|
@ -1,27 +1,2 @@
|
|||
vim.api.nvim_set_keymap("n", "<S-l>", ":BufferNext<CR>", { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap("n", "<S-h>", ":BufferPrevious<CR>", { noremap = true, silent = true })
|
||||
vim.api.nvim_set_keymap("n", "<leader>c", ":BufferClose<CR>", { noremap = true, silent = true })
|
||||
|
||||
lvim.builtin.which_key.mappings["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",
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue