diff options
Diffstat (limited to '.config/nvim/after/plugin/surround.lua')
-rw-r--r-- | .config/nvim/after/plugin/surround.lua | 8 |
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 = '^(“ *)().-( *”)()$' }, } } |