File tree Expand file tree Collapse file tree 2 files changed +37
-2
lines changed Expand file tree Collapse file tree 2 files changed +37
-2
lines changed Original file line number Diff line number Diff line change
1
+ local status , surround = pcall (require , " nvim-surround" )
2
+ if not status then
3
+ vim .notify (" 没有找到 nvim-surround" )
4
+ return
5
+ end
6
+
7
+ surround .setup ({
8
+ keymaps = {
9
+ -- you surround
10
+ normal = " ys" ,
11
+ -- you surround with delimiter
12
+ normal_line = " yS" ,
13
+ -- you surround line
14
+ normal_cur = " yss" ,
15
+ -- you surround line with delimiter
16
+ normal_cur_line = " ySS" ,
17
+
18
+ delete = " ds" ,
19
+ change = " cs" ,
20
+
21
+ insert = " <C-g>s" ,
22
+ insert_line = " <C-g>S" ,
23
+
24
+ visual = " s" ,
25
+ visual_line = " gs" ,
26
+ },
27
+ })
Original file line number Diff line number Diff line change @@ -130,10 +130,18 @@ packer.startup({
130
130
})
131
131
132
132
-- surround
133
+ -- use({
134
+ -- "ur4ltz/surround.nvim",
135
+ -- config = function()
136
+ -- require("plugin-config.surround")
137
+ -- end,
138
+ -- })
139
+
140
+ -- nvim-surround
133
141
use ({
134
- " ur4ltz/surround. nvim" ,
142
+ " kylechui/ nvim-surround " ,
135
143
config = function ()
136
- require (" plugin-config.surround" )
144
+ require (" plugin-config.nvim- surround" )
137
145
end ,
138
146
})
139
147
You can’t perform that action at this time.
0 commit comments