doc: Add nvim-compe to the autocompletion section#2072
doc: Add nvim-compe to the autocompletion section#2072lervag merged 1 commit intolervag:masterfrom savq:master
Conversation
|
I am writing just to confirm that @savq has provided the correct config (which the original reddit post is not). The value for the key Related: hrsh7th/nvim-compe#166 and hrsh7th/nvim-compe#170 (comment) |
Thank you!
Yes, I think it's important to aim for good documentation, especially considering the size of the plugin. And help from people like you is therefore very useful!
Thanks! Also thanks for the references to relevant issues! One open question remains: Is there something in nvim-compe that is equivalent to the |
@lervag, compe seems to be able to use regex patterns for the buffer source, but not for omni-completion. The default pattern matches alphanumeric words, including kebab-case: |
|
Ok, thanks. If something like that should be implemented, then feel free to notify me and/or suggest an update to the configuration suggestions in the docs. |
Following this reddit thread, this PR adds some information on how to use VimTeX with nvim-compe.
I didn't find info on whether compe can use regex patterns for filetypes 😕 but I followed u/mybumsonfire advice on adding the filetype explicitly.
I added a code sample in Lua, though another one in Vimscript can also be added.
I'm glad VimTeX is so well documented 👍