texlab.py 984 B

1234567891011121314151617181920212223242526272829303132
  1. from .config import load_config_schema
  2. from .utils import ShellSpec
  3. TROUBLESHOOT = """\
  4. Please ensure that texlab executable is in the PATH; \
  5. this should happen automatically when installing texlab from Conda, \
  6. but may require manual configuration of PATH environment variable \
  7. if you compiled texlab from source.
  8. You can ensure check if texlab is in the PATH, by running:
  9. which texlab
  10. which should return the path to the executable (if found).
  11. """
  12. class Texlab(ShellSpec):
  13. cmd = key = "texlab"
  14. languages = ["tex", "latex"]
  15. spec = dict(
  16. display_name="texlab",
  17. mime_types=["text/x-latex", "text/x-tex"],
  18. urls=dict(
  19. home="https://texlab.netlify.app",
  20. issues="https://github.com/latex-lsp/texlab/issues",
  21. ),
  22. install=dict(conda="conda install -c conda-forge texlab chktex"),
  23. config_schema=load_config_schema(key),
  24. env=dict(RUST_BACKTRACE="1"),
  25. troubleshoot=TROUBLESHOOT,
  26. )