nvf icon indicating copy to clipboard operation
nvf copied to clipboard

Add texlab, language server for Latex

Open KaminariOS opened this issue 11 months ago • 3 comments

⚠️ Please verify that this feature request has NOT been suggested before.

  • [X] I checked and didn't find a similar feature request

🏷️ Feature Type

New Addon

🔖 Feature description

Add an option to enable texlab

✔️ Solution

defaultServer = "texlab"; servers = { texlab = { package = pkgs.texlab; lspConfig = '' lspconfig.texlab.setup { capabilities = capabilities; on_attach = default_on_attach; cmd = {"${cfg.lsp.package}/bin/texlab"}, } ''; }; };

❓ Alternatives

No response

📝 Additional Context

No response

KaminariOS avatar Jan 05 '25 16:01 KaminariOS

As I’m actively trying to implement this with #569 , are there any particular features the OP (@KaminariOS ) would like implemented in an initial version? What do you use Tex/texlab for and what would be of aid to you? This question extends to anyone else who uses the Tex language as well.

P.S. I use Tex for LaTeX for mathematical proofs so use cases out side of this might require a little further explanation to help me help you. Additionally I’m not familiar with BibTex or conTeXt or how they compare to LaTeX so keep that in mind if your response revolves around them; an small explanation in addition to any feature requests related to these would be appreciated.

isaacST08 avatar Jan 21 '25 18:01 isaacST08

As I’m actively trying to implement this with #569 , are there any particular features the OP (@KaminariOS ) would like implemented in an initial version? What do you use Tex/texlab for and what would be of aid to you? This question extends to anyone else who uses the Tex language as well.

P.S. I use Tex for LaTeX for mathematical proofs so use cases out side of this might require a little further explanation to help me help you. Additionally I’m not familiar with BibTex or conTeXt or how they compare to LaTeX so keep that in mind if your response revolves around them; an small explanation in addition to any feature requests related to these would be appreciated.

I only use Texlab for auto-completion. Adding Texlab trivially is enough for me.

For preview I open the pdf with Okular manually. For re-compile on save I use watchexec to run tectonic to auto recompile on save.

KaminariOS avatar Jan 21 '25 18:01 KaminariOS

I would really like to have this feature as a built in option

zentag avatar Nov 14 '25 18:11 zentag