use z[xpn] to delete, move previous/next buffer
This commit is contained in:
parent
68fd753788
commit
3e0ffff60c
5
init.lua
5
init.lua
|
@ -20,8 +20,9 @@ vim.keymap.set("n", "zj", "<cmd>wincmd j<CR>", { silent = true })
|
||||||
vim.keymap.set("n", "zk", "<cmd>wincmd k<CR>", { silent = true })
|
vim.keymap.set("n", "zk", "<cmd>wincmd k<CR>", { silent = true })
|
||||||
vim.keymap.set("n", "zl", "<cmd>wincmd l<CR>", { silent = true })
|
vim.keymap.set("n", "zl", "<cmd>wincmd l<CR>", { silent = true })
|
||||||
|
|
||||||
vim.keymap.set("n", "<F1>", "<cmd>bprevious<CR>", { silent = true })
|
vim.keymap.set("n", "zn", "<cmd>bnext<CR>", { silent = true })
|
||||||
vim.keymap.set("n", "<F2>", "<cmd>bnext<CR>", { silent = true })
|
vim.keymap.set("n", "zp", "<cmd>bprevious<CR>", { silent = true })
|
||||||
|
vim.keymap.set("n", "zx", "<cmd>bdelete<CR>", { silent = true })
|
||||||
|
|
||||||
vim.g.mapleader = " "
|
vim.g.mapleader = " "
|
||||||
vim.g.maplocalleader = " "
|
vim.g.maplocalleader = " "
|
||||||
|
|
|
@ -19,7 +19,7 @@ return {
|
||||||
"famiu/bufdelete.nvim",
|
"famiu/bufdelete.nvim",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
keys = {
|
keys = {
|
||||||
{ "<F3>", "<cmd>Bdelete<CR>", mode = "n" },
|
{ "zx", "<cmd>Bdelete<CR>", mode = "n" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue