reddit / emacs

Does anyone have idea of how to setup Latex language server for lsp-mode?

Rich_Beautiful · 2022-02-10 03:29
I’ve tried to follow instructions from digestif (https://github.com/astoff/digestif) but it didn’t work.
zck · 2022-02-10 04:11
What does "didn't work" mean? What did you try, where did you get, and were there any errors?
Rich_Beautiful · 2022-02-10 04:17
sorry for not being clear, what I mean is that after following all installation steps of digestif, when I use command M-x lsp in tex files, there was an error saying “command digestif is not present on the path”.
zck · 2022-02-10 04:55
Did you install it with the `For LuaTeX with the self-installing script` step or the `For standalone Lua via LuaRocks` step? You should be able to run `digestif` from your command line. Does that work?
omeow · 2022-02-10 07:03
AucTeX
wargxs · 2022-02-10 07:10
I used eglot and it worked out of the box …
_viz_ · 2022-02-10 08:30
M-: (executable-find "digestif") RET - did that echo a path? If not, open a shell outside of Emacs and say "which digestif"; if that showed something then your Emacs doesn't have the right PATH, set it.
astoff1 · 2022-02-10 08:52
You can also type \`echo $PATH\` on a terminal to see a list of directories where you can place the self-installing script. And don't forget the \`chmod +x\` step described in the README!
mdarifs · 2022-02-10 12:25
I tried sometime back but have not tested it since. Have a look here https://github.com/md-arif-shaikh/.emacs.d/blob/main/emacs.org#latex-with-lsp
Rich_Beautiful · 2022-02-11 02:11
Alright, thanks guys for helping out! That was actually my bad, I didn’t follow exactly the instruction. I thought I have to run digestif executable file on the terminal 😂, but turns out that I only have to put that file in the correct folder, then command lsp on emacs will take care the rest.