summaryrefslogtreecommitdiff
path: root/fnl/settings
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-05-10 00:38:51 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-05-10 00:38:51 +0200
commitd184bc7201d737927df8e550405f894816ab949a (patch)
tree2df481f4a48fb1f31734bcac227c3d0c927b36cf /fnl/settings
parent4f6e3a71e7df0656acbb920b9f3d39e183a06fff (diff)
Remap jumplist and add stack to opt
Diffstat (limited to 'fnl/settings')
-rw-r--r--fnl/settings/keymaps.fnl4
-rw-r--r--fnl/settings/options.fnl2
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})