Skip to content

Commit dbf42e4

Browse files
author
Rakshit Sinha
committed
Allow line end/beginning navigation in normal mode as well
1 parent 073e01a commit dbf42e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/rakshit/core/keymaps.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ vim.keymap.set("n", "<leader>tf", "<cmd>tabnew %<CR>", { desc = "Open current bu
5757
vim.keymap.set("n", "<leader>if", "<cmd> GoIfErr <CR>", { desc = "Add if err != nil snippet" })
5858

5959
-- Borrowed from my VS Code settings for better Vim navigations
60-
vim.keymap.set("n", "<leader>l", "$", { desc = "Move to end of the line with leader + l" })
61-
vim.keymap.set("n", "<leader>h", "_", { desc = "Move to first character of the line with leader + h" })
60+
vim.keymap.set({ "n", "v" }, "<leader>l", "$", { desc = "Move to end of the line with leader + l" })
61+
vim.keymap.set({ "n", "v" }, "<leader>h", "_", { desc = "Move to first character of the line with leader + h" })
6262

6363
-- Gitsigns to toggle hunk preview and git line blame
6464
vim.keymap.set("n", "<leader>gp", ":Gitsigns preview_hunk<CR>", { desc = "Preview changes made on the current line" })

0 commit comments

Comments
 (0)