LSP Clients for LTEX+
lsp-mode client leveraging LTEX+ Language Server.
(use-package lsp-ltex-plus
:ensure t
:hook (text-mode . (lambda ()
(require 'lsp-ltex-plus)
(lsp))) ; or lsp-deferred
:init
(setq lsp-ltex-plus-version "18.2.0")) ; make sure you have set this, see belowFor lsp-ltex-plus to run you need to have ltex-ls-plus installed and available.
Go to ltex-ls-plus installation page,
download the appropriate version, uncompress, and place it under
~/.emacs.d/.cache/lsp/ltex-ls or ~/.config/emacs/.cache/lsp/ltex-ls.
As explained there, if you download the archive that corresponds to
your platform, no Java installation is needed. If you use the platform-independent
file, you will need Java in your computer, and you will need to set the JAVA_HOME
environment variable.
In the configuration for lsp-ltex-plus you will probably want to set the version
you want to use; for example (setq lsp-ltex-plus-version "18.2.0") in the init
section of use-package.
| Commands | Description |
|---|---|
| lsp-ltex-plus-upgrade-ls | Upgrade LTEX server, if not found install it instead. |
lsp-ltex-plus supports following configuration. Each configuration is described in
detail in LTEX+ Settings.
ltex.enabledvialsp-ltex-plus-enabledltex.languagevialsp-ltex-plus-languageltex.dictionaryvialsp-ltex-plus-dictionaryltex.disabledRulesvialsp-ltex-plus-disabled-rulesltex.enabledRulesvialsp-ltex-plus-enabled-rulesltex.hiddenFalsePositivesvialsp-ltex-plus-hidden-false-positivesltex.bibtex.fieldsvialsp-ltex-plus-bibtex-fieldsltex.latex.commandsvialsp-ltex-plus-latex-commandsltex.latex.environmentsvialsp-ltex-plus-latex-environmentsltex.markdown.nodesvialsp-ltex-plus-markdown-nodesltex.additionalRules.enablePickyRulesvialsp-ltex-plus-additional-rules-enable-picky-rulesltex.additionalRules.motherTonguevialsp-ltex-plus-mother-tongueltex.additionalRules.languageModelvialsp-ltex-plus-additional-rules-language-modelltex.additionalRules.neuralNetworkModelvialsp-ltex-plus-additional-rules-neural-network-modelltex.additionalRules.word2VecModelvialsp-ltex-plus-additional-rules-word-2-vec-modelltex.languageToolHttpServerUrivialsp-ltex-plus-languagetool-http-server-uriltex.languageToolOrg.usernamevialsp-ltex-plus-languagetool-org-usernameltex.languageToolOrg.apiKeyvialsp-ltex-plus-languagetool-org-api-keyltex.ltex-ls.pathvialsp-ltex-plus-ls-pathltex.ltex-ls.logLevelvialsp-ltex-plus-log-levelltex.java.pathvialsp-ltex-plus-java-pathltex.java.initialHeapSizevialsp-ltex-plus-java-initial-heap-sizeltex.java.maximumHeapSizevialsp-ltex-plus-java-maximum-heap-sizeltex.sentenceCacheSizevialsp-ltex-plus-sentence-cache-sizeltex.completionEnabledvialsp-ltex-plus-completion-enabled(currently, not implemented)ltex.diagnosticSeverityvialsp-ltex-plus-diagnostic-severityltex.checkFrequencyvialsp-ltex-plus-check-frequencyltex.clearDiagnosticsWhenClosingFilevialsp-ltex-plus-clear-diagnostics-when-closing-fileltex.statusBarItemvialsp-ltex-plus-status-bar-item(currently, not implemented)ltex.trace.servervialsp-ltex-plus-trace-server
If you would like to contribute to this project, you may either clone and make pull requests to this repository. Or you can clone the project and establish your own branch of this tool. Any methods are welcome!
To run the test locally, you will need the following tools:
Install all dependencies and development dependencies:
eask install-deps --devTo test the package's installation:
eask package
eask installTo test compilation:
eask compile🪧 The following steps are optional, but we recommend you follow these lint results!
The built-in checkdoc linter:
eask lint checkdocThe standard package linter:
eask lint package📝 P.S. For more information, find the Eask manual at https://emacs-eask.github.io/.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
See LICENSE for details.

