summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-12-25 23:57:12 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-12-25 23:57:12 +0100
commit13c687bed30be6bc8a9eb801e0d26fab4c67f37a (patch)
tree150ccd3cc5b1b5500600ae9bb0de88bf25c55d7c /fnl
parent6822b5bf517bcb8aaaab81c86f84ec6d12251843 (diff)
Use default keymaps for window movements
Diffstat (limited to 'fnl')
-rw-r--r--fnl/settings/keymaps.fnl19
1 files changed, 5 insertions, 14 deletions
diff --git a/fnl/settings/keymaps.fnl b/fnl/settings/keymaps.fnl
index 1c73350..aa32316 100644
--- a/fnl/settings/keymaps.fnl
+++ b/fnl/settings/keymaps.fnl
@@ -5,16 +5,11 @@
(local mappings [;;Remap space as leader key
["" :<Space> :<Nop> {}]
;; Normal ;;
- ;; Better window navigation
- [:n :<C-h> :<C-w>h {}]
- [:n :<C-j> :<C-w>j {}]
- [:n :<C-k> :<C-w>k {}]
- [:n :<C-l> :<C-w>l {}]
;; Resize with arrows
- [:n :<m-f> "<c-w>+" {}]
- [:n :<m-p> "<c-w>-" {}]
- [:n "<m-,>" "<c-w>5<" {}]
- [:n "<m-.>" "<c-w>5>" {}]
+ [:n :<m-f> :<c-w>+ {}]
+ [:n :<m-p> :<c-w>- {}]
+ [:n "<m-,>" :<c-w>5< {}]
+ [:n :<m-.> :<c-w>5> {}]
;; Visual ;;
;; Stay in indent mode
[:v "<" :<gv {}]
@@ -36,14 +31,10 @@
;; Jump half a page and centralize the view
[:n :<c-d> :<c-d>zz {}]
[:n :<c-u> :<c-u>zz {}]
- ;; Close window
- [:n :Q "<cmd>:q<CR>" {}]
;; Remove highlighted search
[:n :<m-h> :<cmd>nohlsearch<CR> {}]
;; Force refresh
- [:n :mj "<cmd>:e<CR>" {:desc :Refresh}]
- ;; Remap jump next
- [:n :<c-m> :<c-i> {}]])
+ [:n :mj "<cmd>:e<CR>" {:desc :Refresh}]])
(each [_ mapping (ipairs mappings)]
(match mapping