diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2025-04-13 22:40:13 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2025-04-13 22:40:13 +0200 |
commit | 5a10209e89a5993ad66ae4335fc029068b2ad855 (patch) | |
tree | 69e59c14e64505d4e967eb379b7722aab95d50ce /fnl/plugins/surround.fnl | |
parent | 608b3b2beb9ad5867f288641eedd9543b92053ce (diff) |
Diffstat (limited to 'fnl/plugins/surround.fnl')
-rw-r--r-- | fnl/plugins/surround.fnl | 18 |
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} |