From d184bc7201d737927df8e550405f894816ab949a Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 10 May 2024 00:38:51 +0200 Subject: Remap jumplist and add stack to opt --- fnl/settings/keymaps.fnl | 4 +++- fnl/settings/options.fnl | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'fnl') diff --git a/fnl/settings/keymaps.fnl b/fnl/settings/keymaps.fnl index d72ac86..16b1e16 100644 --- a/fnl/settings/keymaps.fnl +++ b/fnl/settings/keymaps.fnl @@ -41,7 +41,9 @@ ;; Remove highlighted search [:n : :nohlsearch {}] ;; Force refresh - [:n :mj ":e" {:desc :Refresh}]]) + [:n :mj ":e" {:desc :Refresh}] + ;; Remap jump next + [:n : : {}]]) (each [_ mapping (ipairs mappings)] (match mapping diff --git a/fnl/settings/options.fnl b/fnl/settings/options.fnl index 1e9d712..d790d79 100644 --- a/fnl/settings/options.fnl +++ b/fnl/settings/options.fnl @@ -84,6 +84,8 @@ (each [k v (pairs opts)] (tset vim.opt k v)) +(vim.opt.jumpoptions:append :stack) + ;; Move to new line when reaching the beginning or end. (vim.opt.whichwrap:append "<,>,[,],h,l") (vim.opt.shortmess:append {:C true}) -- cgit v1.2.3-70-g09d2