summaryrefslogtreecommitdiff
path: root/fnl/plugins/surround.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/plugins/surround.fnl')
-rw-r--r--fnl/plugins/surround.fnl18
1 files changed, 17 insertions, 1 deletions
diff --git a/fnl/plugins/surround.fnl b/fnl/plugins/surround.fnl
index e8fda32..2942bdb 100644
--- a/fnl/plugins/surround.fnl
+++ b/fnl/plugins/surround.fnl
@@ -1,3 +1,19 @@
;; Surround selections.
-{1 :kylechui/nvim-surround :event :InsertEnter :config true}
+(local keymaps {:insert :<C-g>s
+ :insert_line :<C-g>S
+ :normal :ys
+ :normal_cur :yss
+ :normal_line :yS
+ :normal_cur_line :ySS
+ :visual :gS
+ :visual_line :gS
+ :delete :ds
+ :change :cs
+ :change_line :cS})
+
+(λ config []
+ (let [surround (require :nvim-surround)]
+ (surround.setup {: keymaps})))
+
+{1 :kylechui/nvim-surround :event :VeryLazy : config}