summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2024-07-10 00:59:26 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2024-07-10 00:59:26 +0200
commit013596a0f92a64353917a1371c1733a0e4279175 (patch)
treed8ebc1ccb0efda0a6a4f9f60d26761b8e5888686
parent841aaee245dde41c74e8e0227e34cd3c4fd76136 (diff)
Update leap config
-rw-r--r--fnl/plugins/leap.fnl12
1 files changed, 8 insertions, 4 deletions
diff --git a/fnl/plugins/leap.fnl b/fnl/plugins/leap.fnl
index b17df72..58b47e8 100644
--- a/fnl/plugins/leap.fnl
+++ b/fnl/plugins/leap.fnl
@@ -10,7 +10,7 @@
:event [:BufReadPost :BufNewFile]
:opts {;; Additional text objects, to be merged with the default ones.
;; E.g.: {'iq', 'aq'}
- :extra_text_objects nil
+ :extra_text_objects [:iq :aq]
;; Mappings will be generated corresponding to all native text objects,
;; like: (ir|ar|iR|aR|im|am|iM|aM){obj}.
;; Special line objects will also be added, by repeating the affixes.
@@ -24,7 +24,7 @@
;; Defines text objects like `riw`, `raw`, etc., instead of
;; targets.vim-style `irw`, `arw`. (Note: prefix is forced if a custom
;; text object does not start with "a" or "i".)
- :prefix false
+ :prefix true
;; The yanked text will automatically be pasted at the cursor position
;; if the unnamed register is in use.
:paste_on_remote_yank false}}])
@@ -32,6 +32,10 @@
(fn config []
(let [leap (require :leap)]
(leap.setup {})
- (leap.set_default_keymaps)))
+ (leap.create_default_mappings)
+ (vim.keymap.set [:n :x :o] :gs "<Plug>(leap-from-window)")))
-{1 :ggandor/leap.nvim : dependencies :event [:BufReadPost :BufNewFile] : config}
+{1 :ggandor/leap.nvim
+ : dependencies
+ :event [:BufReadPost :BufNewFile]
+ : config}