Skip to content

Commit

Permalink
fix(keymaps): use update instead of write when saving. Fixes #9
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 4, 2023
1 parent 2fe5053 commit 825e7cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lazyvim/config/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ vim.keymap.set("i", ".", ".<c-g>u")
vim.keymap.set("i", ";", ";<c-g>u")

-- save in insert mode
vim.keymap.set("i", "<C-s>", "<cmd>:w<cr><esc>")
vim.keymap.set("n", "<C-s>", "<cmd>:w<cr><esc>")
vim.keymap.set("i", "<C-s>", "<cmd>up<cr><esc>")
vim.keymap.set("n", "<C-s>", "<cmd>up<cr><esc>")

-- better indenting
vim.keymap.set("v", "<", "<gv")
Expand Down

0 comments on commit 825e7cd

Please sign in to comment.