Skip to content

Commit 38c8991

Browse files
committed
fix(normal): keep all jumps
1 parent 9561d80 commit 38c8991

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

lua/plugins/oil.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ return {
2424
bufhidden = "hide",
2525
},
2626
columns = {
27-
{ "mtime", highlight = "Comment" },
2827
{ "size", highlight = "Comment" },
28+
{ "mtime", highlight = "Comment" },
2929
{ "icon", add_padding = false },
3030
},
3131
constrain_cursor = "name",

plugin/keymaps/normal.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ end
99

1010
-- More deterministic short distance jumps
1111
-- https://nanotipsforvim.prose.sh/vertical-navigation-%E2%80%93-without-relative-line-numbers
12-
k("{", ":keepjumps normal! 6k<cr>", { desc = "Jump up 6 lines", silent = true })
13-
k("}", ":keepjumps normal! 6j<cr>", { desc = "Jump down 6 lines", silent = true })
12+
k("{", ":normal! 6k<cr>", { desc = "Jump up 6 lines", silent = true })
13+
k("}", ":normal! 6j<cr>", { desc = "Jump down 6 lines", silent = true })
1414

1515
-- Store relative line number jumps in the jumplist.
1616
-- For small jumps, use visual lines.
@@ -152,8 +152,8 @@ k("[<c-i>", function()
152152
end, { desc = "Search current word (from beginning of file)" })
153153

154154
-- Don't store jumps when browsing search results
155-
k("n", ":keepjumps normal! n<cr>", { desc = "Search: Next" })
156-
k("N", ":keepjumps normal! N<cr>", { desc = "Search: Previous" })
155+
k("n", ":normal! n<cr>", { desc = "Search: Next" })
156+
k("N", ":normal! N<cr>", { desc = "Search: Previous" })
157157

158158
-- }}}
159159

0 commit comments

Comments
 (0)