Skip to content

Commit f1d4838

Browse files
committed
refactor: keymap
1 parent 0308acc commit f1d4838

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

home-manager/common/neovim/init.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
190190
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
191191
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
192192

193+
-- NOTE: customized keymaps
194+
vim.keymap.set('n', '<C-s>', ':w<CR>', { desc = 'Save buffer' })
195+
vim.keymap.set('i', '<C-s>', '<Esc>:w<CR>', { desc = 'Save buffer' })
196+
193197
-- [[ Basic Autocommands ]]
194198
-- See `:help lua-guide-autocommands`
195199

0 commit comments

Comments
 (0)