summaryrefslogtreecommitdiff
path: root/.config/nvim/after/plugin
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/after/plugin')
-rw-r--r--.config/nvim/after/plugin/surround.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/.config/nvim/after/plugin/surround.lua b/.config/nvim/after/plugin/surround.lua
index 859f984..605b1eb 100644
--- a/.config/nvim/after/plugin/surround.lua
+++ b/.config/nvim/after/plugin/surround.lua
@@ -2,18 +2,26 @@ require('nvim-surround').setup {
surrounds = {
['’'] = {
add = { '‘', '’' },
+ find = '‘[^‘’]*’',
+ delete = '^(‘)().-(’)()$'
},
['‘'] = {
add = { '‘ ', ' ’' },
+ find = '‘[^‘’]*’',
+ delete = '^(‘ *)().-( *’)()$'
},
['”'] = {
add = { '“', '”' },
+ find = '“[^“”]*”',
+ delete = '^(“)().-(”)()$'
},
['“'] = {
add = { '“ ', ' ”' },
+ find = '“[^“”]*”',
+ delete = '^(“ *)().-( *”)()$'
},
}
}