mirror of
https://github.com/cap153/nvim.git
synced 2026-07-16 22:16:54 +08:00
添加自定义包裹
This commit is contained in:
parent
c3a1663bdb
commit
bd07b6ef70
1 changed files with 18 additions and 4 deletions
|
|
@ -20,6 +20,20 @@ vim.api.nvim_create_autocmd({
|
||||||
replace = 'cs', -- Replace surrounding/change sround
|
replace = 'cs', -- Replace surrounding/change sround
|
||||||
update_n_lines = 'sn', -- Update `n_lines`
|
update_n_lines = 'sn', -- Update `n_lines`
|
||||||
},
|
},
|
||||||
|
custom_surroundings = {
|
||||||
|
b = {
|
||||||
|
input = { '%*%*().-()%*%*' },
|
||||||
|
output = { left = '**', right = '**' }
|
||||||
|
},
|
||||||
|
i = {
|
||||||
|
input = { '%*().-()%*' },
|
||||||
|
output = { left = '*', right = '*' }
|
||||||
|
},
|
||||||
|
c = {
|
||||||
|
input = { '`().-()`' },
|
||||||
|
output = { left = '`', right = '`' }
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
end)
|
end)
|
||||||
end)
|
end)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue