From bb2437a040e8f9847e31132c92eb0c041d685704 Mon Sep 17 00:00:00 2001 From: woon Date: Thu, 16 Nov 2023 10:25:50 +0800 Subject: [PATCH] update --- lua/keymaps.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lua/keymaps.lua b/lua/keymaps.lua index c7f26e8..bf76b18 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -67,6 +67,8 @@ map("n", "q", ":q", opt) map("n", "qq", ":q!", opt) map("n", "Q", ":qa!", opt) +map("n", "ww", ":w!", opt) + -- insert 模式下,跳到行首行尾 map("i", "", "I", opt) map("i", "", "A", opt) @@ -88,13 +90,13 @@ pluginKeys.nvimTreeList = { { key = "i", action = "toggle_custom" }, -- 对应 filters 中的 custom (node_modules) { key = ".", action = "toggle_dotfiles" }, -- Hide (dotfiles) -- 文件操作 - { key = "", action = "refresh" }, + { key = "s", action = "refresh" }, { key = "a", action = "create" }, { key = "d", action = "remove" }, { key = "r", action = "rename" }, { key = "x", action = "cut" }, { key = "c", action = "copy" }, { key = "p", action = "paste" }, - { key = "s", action = "system_open" }, + { key = "o", action = "system_open" }, } return pluginKeys