latex-lsp / texlab

An implementation of the Language Server Protocol for LaTeX
GNU General Public License v3.0
1.56k stars 52 forks source link

`textDocument/hover` on commands and macros doesn't work #1261

Closed yunusey closed 1 week ago

yunusey commented 2 weeks ago

First of all, thanks for the amazing project! I've been using it pretty frequently for the last few months and found it extremely useful!

Currently, TexLab supports completions with unicode (and image, even though I am not able to use it currently) previews (please see the first dropdown) and supports textDocument/hover on labels and citations (please see the second dropdown). However, I don't think it currently supports textDocument/hover to preview, say \pi, \theta, or \leftarrow. I think it might be a good idea to add unicode preview when called hover on these commands/macros and documentation where applicable.


Example completion for \pi
textDocument/hover on an example label
My TexLab Configuration in Neovim ```lua require('lspconfig').texlab.setup { on_attach = on_attach, capabilities = capabilities, filetypes = { "tex", "plaintex", "bib" }, cmd = { "texlab" }, settings = { texlab = { latexindent = { ['local'] = vim.fn.getcwd() .. '/indentconfig.yaml', } } } } ```