use z[xpn] to delete, move previous/next buffer

This commit is contained in:
leafee98 2023-08-09 10:34:08 +08:00
parent 68fd753788
commit 3e0ffff60c
2 changed files with 4 additions and 3 deletions

View file

@ -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", "zl", "<cmd>wincmd l<CR>", { silent = true })
vim.keymap.set("n", "<F1>", "<cmd>bprevious<CR>", { silent = true })
vim.keymap.set("n", "<F2>", "<cmd>bnext<CR>", { silent = true })
vim.keymap.set("n", "zn", "<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.maplocalleader = " "

View file

@ -19,7 +19,7 @@ return {
"famiu/bufdelete.nvim",
lazy = false,
keys = {
{ "<F3>", "<cmd>Bdelete<CR>", mode = "n" },
{ "zx", "<cmd>Bdelete<CR>", mode = "n" },
},
},
{