atom-latex-completions icon indicating copy to clipboard operation
atom-latex-completions copied to clipboard

Complete inside docstrings?

Open dpo opened this issue 8 years ago • 5 comments

For some reason, completions don't occur inside Julia docstrings for me. I logged the cursor scope while inside a docstring and accordingly added

.source.julia, string.docstring.julia, .source.gfm

to the config of this package, but with no luck. I also tried .docstring.julia instead of string.docstring.julia but with no success. Completions happily occur outside of docstrings.

Any ideas?

dpo avatar Jan 20 '17 22:01 dpo

Hm, I can't reproduce this -- latex completions work just fine in docstrings and strings for me.

pfitzseb avatar Jan 21 '17 18:01 pfitzseb

Since I posted I noticed that the issue I'm having is more nuanced. Say I open a docstring with triple quotes and immediately type \lambda:

"""\lambda

then completion kicks in correctly. But if I type \lambda on the next line:

"""
\lambda

completion doesn't occur. Do you not observe the same?

dpo avatar Jan 21 '17 19:01 dpo

No, both cases work fine for me. What are your Selector and Disable For Selector settings?

pfitzseb avatar Jan 21 '17 20:01 pfitzseb

I restored them to the default values.

dpo avatar Jan 21 '17 20:01 dpo

Do you have autocomplete-bibtex installed? At .source.gfm, all other autocompletions get disabled.

https://github.com/apcshields/autocomplete-bibtex/issues/72

joshday avatar Feb 10 '17 17:02 joshday