roxma / nvim-completion-manager

:warning: PLEASE USE https://github.com/ncm2/ncm2 INSTEAD
MIT License
917 stars 49 forks source link

Language specific completion for reStructuredText? #145

Closed ashfinal closed 6 years ago

ashfinal commented 6 years ago

I saw your scoping sources for Markdown, it is really handy for writing blog. But recently I turn to reStructuredText, I'm wondering is there any way to make language completion work in reStructuredText document?

reST document's filetype is rst, and its code block is like this:

Normal paragraph.

.. code:: python
   import sys
   print(sys.version)

Normal paragraph.

Thanks for your help in advance.

roxma commented 6 years ago

Just added reStructuredText support.

Though, current version cannot strip the indentation of the code block for completion sources. Fortunately, it still works for jedi completion.

ashfinal commented 6 years ago

Just gave it a try and it works. Wonderful! Thanks for your help, making ncm a better plugin. ❤️