style: add description for "gw" keymap (#327)

This commit is contained in:
Calvin Bochulak 2023-02-28 01:58:29 -07:00 committed by GitHub
parent 2b8b27b4a9
commit 8a9265efed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,8 +64,7 @@ map(
{ desc = "Redraw / clear hlsearch / diff update" }
)
map("n", "gw", "*N")
map("x", "gw", "*N")
map({ "n", "x" }, "gw", "*N", { desc = "Highlight under cursor" })
-- https://github.com/mhinz/vim-galore#saner-behavior-of-n-and-n
map("n", "n", "'Nn'[v:searchforward]", { expr = true, desc = "Next search result" })