nvim: 快速鍵調整

This commit is contained in:
2025-04-30 10:33:25 +08:00
parent 0f5bf1cd91
commit 9240f60445
3 changed files with 7 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ local map = vim.keymap.set
-- Ctrl+Enter 鍵會被視為 Ctrl+M (對策: 多增加相同功能的Ctrl+Alt+Enter)
-- <A-S-CR>
-- Ctrl+s 儲存
map("n", "<C-s>", "<cmd>write<CR>", { noremap = true, silent = true, desc = "Save file" })
map("i", "<C-s>", "<Esc><cmd>write<CR>a", { noremap = true, silent = true, desc = "Save file in insert mode" })
-- Tab切換
-- 現在由barbar控制先停用