Skip to content

Commit

Permalink
feat(keymaps): added missing descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Jan 8, 2023
1 parent 26a3d8c commit 838bff1
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 @@ -37,7 +37,7 @@ vim.keymap.set("n", "[p", ":pu!<cr>", { desc = "Paste below" })
vim.keymap.set("n", "]p", ":pu<cr>", { desc = "Paste above" })

-- Clear search with <esc>
vim.keymap.set({ "i", "n" }, "<esc>", "<cmd>noh<cr><esc>")
vim.keymap.set({ "i", "n" }, "<esc>", "<cmd>noh<cr><esc>", { desc = "Escape and clear hlsearch" })
vim.keymap.set("n", "gw", "*N")
vim.keymap.set("x", "gw", "*N")

Expand All @@ -55,7 +55,7 @@ vim.keymap.set("i", ".", ".<c-g>u")
vim.keymap.set("i", ";", ";<c-g>u")

-- save in insert mode
vim.keymap.set({ "i", "v", "n", "s" }, "<C-s>", "<cmd>w<cr><esc>")
vim.keymap.set({ "i", "v", "n", "s" }, "<C-s>", "<cmd>w<cr><esc>", { desc = "Save file" })

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

0 comments on commit 838bff1

Please sign in to comment.