neoclide / coc-vimtex

vimtex integration for coc.nvim
130 stars 4 forks source link

Add configuration option for enabled filetypes #27

Closed ihasdapie closed 2 years ago

ihasdapie commented 2 years ago

Add coc.sources.vimtex.filetypes configuration paramter so that users can enable this for non-latex filetypes e.g. markdown.

This allows for you to get latex autocompletion and features with coc.nvim in markdown/pandoc/other files, which is really useful. You just need to add call vimtex#init() to the ftplugin file for the filetype you want to enable this for as well.