mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-02 17:14:56 +02:00
refactor single file
This commit is contained in:
parent
476f7bb22f
commit
2423fcdc90
37 changed files with 1088 additions and 1169 deletions
28
lua/core/bufferline.lua
Normal file
28
lua/core/bufferline.lua
Normal file
|
@ -0,0 +1,28 @@
|
|||
vim.api.nvim_set_keymap("n", "<S-x>", ":BufferClose<CR>", { noremap = true, silent = true })
|
||||
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 })
|
||||
|
||||
O.plugin.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