Open f0rki opened 2 years ago
I've been trying to get LTeX's LSP to work properly with ALE, but it's not reporting any diagnostics that its corresponding CLI tool ltex-cli
does. Here's what I have so far.
" in ~/.vim/vimrc
call ale#linter#Define('markdown', {
\ 'name': 'ltex',
\ 'lsp': 'stdio',
\ 'executable': '/opt/ltex-ls-16.0.0/bin/ltex-ls',
\ 'command': '%e --server-type=StandardStream --log-file=ltex-log.out',
\ 'project_root': '~',
\})
" in ~/.vim/ftplugin/markdown.vim
let b:ale_linters = ['ltex']
<!-- :ALEInfo Window -->
Command History:
(executable check - success) /opt/ltex-ls-16.0.0/bin/ltex-ls
I'm not an expert on the language server protocol, but I think LTeX isn't working with ALE because ALE can't handle unknown JSON RPC requests (see #4610).
Name: ltex-ls URL: https://valentjn.github.io/ltex/, (code at https://github.com/valentjn/ltex-ls)
At least the vscode client for ltex-ls seems to work pretty well. I haven't found a spell and grammar checking tool for latex that works well for me, but this one looks promising. There are also some neovim plugins using the built-in LSP support (here is a list of client editor plugins), but I don't use that so ALE integration would very nice :)