修改快捷键

This commit is contained in:
LingZhaoHui 2024-06-08 12:57:33 +08:00
parent ddbce142df
commit 2c922d98ea
Signed by: zeekling
GPG Key ID: D96E4E75267CA2CC

View File

@ -1,10 +1,14 @@
vim.g.mapleader = " "
vim.keymap.set("n", "<leader>mk", "<cmd>MarkdownPreview<cr>", { silent = true })
# markdown
vim.keymap.set("n", "<leader>mks", "<cmd>MarkdownPreview<cr>", { silent = true })
vim.keymap.set("n", "<leader>mkc", "<cmd>MarkdownPreviewStop<cr>", { silent = true })
# tree
vim.keymap.set("n", "<leader>ds", "<cmd>NvimTreeToggle<cr>", { silent = true })
vim.keymap.set("n", "<leader>dc", "<cmd>NvimTreeClose<cr>", { silent = true })
# buffer
vim.keymap.set("n", "<leader>bp", "<cmd>BufferLineCyclePrev<cr>", { silent = true })
vim.keymap.set("n", "<leader>bn", "<cmd>BufferLineCycleNext<cr>", { silent = true })
vim.keymap.set("n", "<leader>bd", "<cmd>bd<cr>", { silent = true })