neoclide / coc-pairs

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

keyword autocomplete #52

Closed collegeimprovements closed 4 years ago

collegeimprovements commented 4 years ago

Thanks a lot for this plugin. It works out of the box and it's great.

Is it possible to provide keyword based autocomplete for languages where def, do, end etc. keywords are used. i.e. when we typedef ... it also put end on the third line and put cursor on 2nd line.

Some of this functionality can be achieved by snippets. However it would be really helpful to have do................end autocompletion out of the box for languages like elixir.

Or this is a non-feature for this plugin ?

chemzqm commented 4 years ago

Use snippet plugin.

collegeimprovements commented 4 years ago

Wow...... @chemzqm you're really fast...I was just updating the issue description. Many of such things can be achieved with snippets. But can we have some completions like do...end ?

chemzqm commented 4 years ago

No, out of scope, you can create single file extension yourself https://github.com/neoclide/coc.nvim/wiki/Using-coc-extensions#single-file-extensions