neoclide / coc-pairs

Basic auto pairs extension of coc.nvim
295 stars 14 forks source link

Is there any way to insert spaces before closing characters? #51

Closed moecasts closed 4 years ago

moecasts commented 4 years ago

Insert spaces before closing characters, only for [], (), {} like auto-pairs

input: {|} (press <SPACE> at |)
output: { | }

input: {|} (press <SPACE>foo} at |)
output: { foo }|

input: '|' (press <SPACE> at |)
output: ' |'
chemzqm commented 4 years ago

No, use surrand.vim