valentjn / ltex-ls

LTeX Language Server: LSP language server for LanguageTool :mag::heavy_check_mark: with support for LaTeX :mortar_board:, Markdown :pencil:, and others
https://valentjn.github.io/ltex
Mozilla Public License 2.0
717 stars 33 forks source link

configuration within vimrc #264

Open rudrab opened 11 months ago

rudrab commented 11 months ago

Dear all, I just heard about LTex today. I have installed coc-ltex for Vim. My coc-lsp-setting is:

g:coc_user_config = {
      \ 'diagnostic.errorSign': '',
      \ 'diagnostic.warningSign': '',
      \ 'diagnostic.infoSign': '',
      \ 'languageserver': {
      \ 'latex': {
      \   'command': '/home/rudra/.config/coc/extensions/coc-texlab-data/texlab',
      \   'ignoredRootPaths': ['~'],
      \   'filetypes': ['tex', 'bib', 'plaintex', 'context'],
      \ },
      \ 'latex2': {
      \ 'command': 'coc-ltex',
      \ 'ltex.language': 'en-GB'
      \ },
      \ }
      \ }

As you can see, I want to you both texlab and ltex. I am having the following problem:

  1. I want to change the language from en-US to en-GB.
  2. I also can not find the proper command .

Can you kindly advice me proper vimrc or any other file setup?