ROCKTAKEY / lsp-latex

Emacs lsp-mode client for LaTeX, on texlab.
GNU General Public License v3.0
69 stars 4 forks source link

Completion order and timing of <Tab> #31

Closed roblem closed 3 years ago

roblem commented 3 years ago

This could be a company configuration issue, so apologies if so. I haven't seen the strange completion behavior described below in other contexts, however.

latex command completions work fine. Any of the reference-based completions like cite or ref have some fairly strange completion behavior. In all the examples, I am hitting <TAB> at the last character in the \ref or \cite line

Equations

Example 1: Why aren't only metapop entries shown? completions_eq_1

Example 2: This is even more strange, if I only want to look at equations using the eq label I preface all equations with completions_eq_2

Example 3: So maybe it can be narrowed down if I use eq:- this returns no completions completions_eq_3

Citations

Example 4: Just to convince myself that completions are reaching into my bibliography, here are some entries. It seems that company-prescient may be putting the cabeza one at the top as I had used it previously. completions_cite_1

Example 5: But I can't narrow this list down if I start typing an author name (like Lee) no completions are returned completions_cite_2

ROCKTAKEY commented 3 years ago

Thanks for your report and sorry for late comment. Could you attach texlab.log? You can get it by the method on here. (note: this issue template was added after you create this issue, so it is not your fault)

roblem commented 3 years ago

Most of the issues here are the result of using company-prescient. This causes weird sorting behavior unless you set company-prescient-sort-length-enable to nil for any Tex modes as described here: https://github.com/raxod502/prescient.el/issues/86