Skip to content

Commit

Permalink
fix(save): change to write again to trigger auto-formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 4, 2023
1 parent 825e7cd commit 259c3a6
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>up<cr><esc>")
vim.keymap.set("n", "<C-s>", "<cmd>up<cr><esc>")
vim.keymap.set("i", "<C-s>", "<cmd>w<cr><esc>")
vim.keymap.set("n", "<C-s>", "<cmd>w<cr><esc>")

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

0 comments on commit 259c3a6

Please sign in to comment.