diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-05-10 00:38:51 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-05-10 00:38:51 +0200 |
commit | d184bc7201d737927df8e550405f894816ab949a (patch) | |
tree | 2df481f4a48fb1f31734bcac227c3d0c927b36cf /fnl | |
parent | 4f6e3a71e7df0656acbb920b9f3d39e183a06fff (diff) |
Remap jumplist and add stack to opt
Diffstat (limited to 'fnl')
-rw-r--r-- | fnl/settings/keymaps.fnl | 4 | ||||
-rw-r--r-- | fnl/settings/options.fnl | 2 |
2 files changed, 5 insertions, 1 deletions
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 :<c-m> :<cmd>nohlsearch<CR> {}] ;; Force refresh - [:n :mj "<cmd>:e<CR>" {:desc :Refresh}]]) + [:n :mj "<cmd>:e<CR>" {:desc :Refresh}] + ;; Remap jump next + [:n :<c-m> :<c-i> {}]]) (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}) |