gerw / vim-latex-suite

71 stars 16 forks source link

Support for cleveref #35

Closed khatchad closed 6 years ago

khatchad commented 6 years ago

The cleveref package doesn't seem to be fully supported. For example, \cref commands are not treated the same as \ref. The syntax highlighting is different and spell check is making the labels as incorrectly spelled (it doesn't do that for \ref).

gerw commented 6 years ago

The latex-suite does not provide any syntax highlighting. The standard syntax highlighting of vim for LaTeX does not know cleveref. However, you can use https://github.com/gerw/vim-tex-syntax for improving the syntax highlighting.

khatchad commented 6 years ago

Thanks! What about auto-completion then?

gerw commented 6 years ago

What do you mean by autocompletion?

khatchad commented 6 years ago

F9 should bring up labels after \ref{, in latex-suite, I believe. It doesn't work in my vim right now but I know that has worked before.

gerw commented 6 years ago

Completion of \cref does work with latex-suite.

khatchad commented 6 years ago

Ah, ok, just must be my machine then.