about summary refs log tree commit diff
path: root/fnl/nvrc/keymaps.fnl
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2024-08-11 16:37:13 +0900
committersefidel <contact@sefidel.net>2024-08-11 16:37:13 +0900
commitf5679cac13df1bce7a062c88b260eefebd21016a (patch)
treeb39801b273a545010ec2353f6062e7aa8e2fd6e4 /fnl/nvrc/keymaps.fnl
parent3fc863b663e06f80a4d23bb0e376d4a36e9516b4 (diff)
downloadnvimrc-f5679cac13df1bce7a062c88b260eefebd21016a.tar.gz
nvimrc-f5679cac13df1bce7a062c88b260eefebd21016a.zip
feat(keymaps, pack): subword movements
Diffstat (limited to 'fnl/nvrc/keymaps.fnl')
-rw-r--r--fnl/nvrc/keymaps.fnl10
1 files changed, 10 insertions, 0 deletions
diff --git a/fnl/nvrc/keymaps.fnl b/fnl/nvrc/keymaps.fnl
index e8838c2..846b98e 100644
--- a/fnl/nvrc/keymaps.fnl
+++ b/fnl/nvrc/keymaps.fnl
@@ -84,6 +84,16 @@
 (map! [n] :<leader>l (vim.diagnostic.open_float nil {:focus false}))
 (map! [n] :<leader>b ((. (require :dap) :toggle_breakpoint)))
 
+;; subword movements
+; nvim-spider
+(map! [nox] :w ((. (require :spider) :motion) :w))
+(map! [nox] :e ((. (require :spider) :motion) :e))
+(map! [nox] :b ((. (require :spider) :motion) :b))
+
+; nvim-various-textobjs
+(map! [ox] :aw ((. (require :various-textobjs) :subword) :outer))
+(map! [ox] :iw ((. (require :various-textobjs) :subword) :inner))
+
 ;; Helix-like movements
 (map! [nv] :gh :0)
 (map! [nv] :gl "$")