This commit is contained in:
2023-11-17 16:56:49 +08:00
parent bb2437a040
commit 2144efdcb5
4 changed files with 196 additions and 4 deletions
+3 -2
View File
@@ -8,7 +8,7 @@ local map = vim.api.nvim_set_keymap
vim.g.mapleader = "z"
-- vim.g.maplocalleader = "\\"
map('n', '<F5>', '<Esc>:tabnew<CR>', opt)
--map('n', '<F5>', '<Esc>:tabnew<CR>', opt)
map('n', 'ff', '<Esc>:FloatermToggle<CR>', opt)
map('t', 'ff', ':FloatermToggle<CR>', opt)
map('n', '<leader>g', '<Esc>:CocCommand git.showBlameDoc<CR>', opt)
@@ -68,6 +68,7 @@ map("n", "qq", ":q!<CR>", opt)
map("n", "Q", ":qa!<CR>", opt)
map("n", "ww", ":w!<CR>", opt)
map("n", "W", ":w!<CR>", opt)
-- insert 模式下,跳到行首行尾
map("i", "<C-h>", "<ESC>I", opt)
@@ -90,7 +91,7 @@ pluginKeys.nvimTreeList = {
{ key = "i", action = "toggle_custom" }, -- 对应 filters 中的 custom (node_modules)
{ key = ".", action = "toggle_dotfiles" }, -- Hide (dotfiles)
-- 文件操作
{ key = "s", action = "refresh" },
{ key = "<F5>", action = "refresh" },
{ key = "a", action = "create" },
{ key = "d", action = "remove" },
{ key = "r", action = "rename" },