summaryrefslogtreecommitdiff
path: root/fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl')
-rw-r--r--fnl/plugins/harpoon.fnl11
-rw-r--r--fnl/plugins/leap.fnl12
-rw-r--r--fnl/plugins/surround.fnl4
3 files changed, 13 insertions, 14 deletions
diff --git a/fnl/plugins/harpoon.fnl b/fnl/plugins/harpoon.fnl
index 1ae632c..3f8f7ac 100644
--- a/fnl/plugins/harpoon.fnl
+++ b/fnl/plugins/harpoon.fnl
@@ -1,6 +1,9 @@
;; Harpoon files for navigation.
-(local opts {:ui_max_width 64 :title " ⇁ "})
+(local opts
+ {:ui_max_width 64
+ :title " ⇁ "
+ :settings {:save_on_toggle true :sync_on_ui_close true}})
(local user-cmds [[:HarpoonAdd
(λ []
@@ -40,8 +43,4 @@
(select 4))
:desc "Fourth Harpoon"}])
-{1 :ThePrimeagen/harpoon
- :branch :harpoon2
- :event :BufRead
- : init
- : keys}
+{1 :ThePrimeagen/harpoon :branch :harpoon2 :event :BufRead : init : keys}
diff --git a/fnl/plugins/leap.fnl b/fnl/plugins/leap.fnl
index 5a80dbe..e7d3133 100644
--- a/fnl/plugins/leap.fnl
+++ b/fnl/plugins/leap.fnl
@@ -33,10 +33,10 @@
(λ config []
(let [leap (require :leap)]
(leap.setup {})
- (leap.create_default_mappings)
- (vim.keymap.set [:n :x :o] :gs "<Plug>(leap-from-window)")))
+ (vim.keymap.set [:n :x :o] :s "<Plug>(leap-forward)")
+ (vim.keymap.set [:n :x :o] :S "<Plug>(leap-backward)")
+ (vim.keymap.set [:x :o] :x "<Plug>(leap-forward-till)")
+ (vim.keymap.set [:x :o] :X "<Plug>(leap-backward-till)")
+ (vim.keymap.set [:n] :gs "<Plug>(leap-from-window)")))
-{1 :ggandor/leap.nvim
- : dependencies
- :event :VeryLazy
- : config}
+{1 :ggandor/leap.nvim : dependencies :event :VeryLazy : config}
diff --git a/fnl/plugins/surround.fnl b/fnl/plugins/surround.fnl
index 2942bdb..7b8b684 100644
--- a/fnl/plugins/surround.fnl
+++ b/fnl/plugins/surround.fnl
@@ -6,7 +6,7 @@
:normal_cur :yss
:normal_line :yS
:normal_cur_line :ySS
- :visual :gS
+ :visual :mS
:visual_line :gS
:delete :ds
:change :cs
@@ -16,4 +16,4 @@
(let [surround (require :nvim-surround)]
(surround.setup {: keymaps})))
-{1 :kylechui/nvim-surround :event :VeryLazy : config}
+{1 :kylechui/nvim-surround :version :^3.0.0 :event :VeryLazy : config}