Skip to content

Commit 35aeb42

Browse files
Adding surround plugin
1 parent 649367e commit 35aeb42

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

init.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@
1515
======== `"")----------------(""` ___________ ========
1616
======== /::::::::::| |::::::::::\ \ no mouse \ ========
1717
======== /:::========| |==hjkl==:::\ \ required \ ========
18-
======== '""""""""""""' '""""""""""""' '""""""""""' ========
18+
======== '""""""""""""' '""""""""""""' '"""""""""' ========
1919
======== ========
2020
=====================================================================
2121
=====================================================================
2222
2323
What is Kickstart?
2424
25-
Kickstart.nvim is *not* a distribution.
25+
Kickstart.nvim is *not* a distribution.
2626
2727
Kickstart.nvim is a starting point for your own configuration.
2828
The goal is that you can read every line of code, top-to-bottom, understand

lua/custom/plugins/surround.lua

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
return {
2+
{ -- https://github.com/echasnovski/mini.surround
3+
'echasnovski/mini.surround',
4+
version = false,
5+
recommended = true,
6+
opts = {
7+
mappings = {
8+
add = 'gsa', -- Add surrounding in Normal and Visual modes
9+
delete = 'gsd', -- Delete surrounding
10+
find = 'gsf', -- Find surrounding (to the right)
11+
find_left = 'gsF', -- Find surrounding (to the left)
12+
highlight = 'gsh', -- Highlight surrounding
13+
replace = 'gsr', -- Replace surrounding
14+
update_n_lines = 'gsn', -- Update `n_lines`
15+
},
16+
},
17+
},
18+
}

0 commit comments

Comments
 (0)