summaryrefslogtreecommitdiff
path: root/fnl/plugins/surround.fnl
blob: 2942bdb2e0503b92ae5dd50cc14f049c99c4f231 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
;; Surround selections.

(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}