LSP Clients for LTEX
lsp-mode client leveraging LTEX Language Server.

(use-package lsp-ltex
:ensure t
:hook (text-mode . (lambda ()
(require 'lsp-ltex)
(lsp))) ; or lsp-deferred
:init
(setq lsp-ltex-version "15.2.0")) ; make sure you have set this, see below
For lsp-ltex to run you need to have ltex-ls installed and available.
Go to https://valentjn.github.io/ltex/ltex-ls/installation.html, download
the appropriate version, uncompress, and place it under ~/.emacs.d/.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 you will probably want to set the version
you want to use; for example (setq lsp-ltex-version "15.2.0") in the init
section of use-package.
| Commands | Description |
|---|---|
| lsp-ltex-upgrade-ls | Upgrade LTEX server, if not found install it instead. |
lsp-ltex supports following configuration. Each configuration is described in
detail in LTEX Settings.
ltex.enabled via lsp-ltex-enabledltex.language via lsp-ltex-languageltex.dictionary via lsp-ltex-dictionaryltex.disabledRules via lsp-ltex-disabled-rulesltex.enabledRules via lsp-ltex-enabled-rulesltex.hiddenFalsePositives via lsp-ltex-hidden-false-positivesltex.bibtex.fields via lsp-ltex-bibtex-fieldsltex.latex.commands via lsp-ltex-latex-commandsltex.latex.environments via lsp-ltex-latex-environmentsltex.markdown.nodes via lsp-ltex-markdown-nodesltex.additionalRules.enablePickyRules via lsp-ltex-additional-rules-enable-picky-rulesltex.additionalRules.motherTongue via lsp-ltex-mother-tongueltex.additionalRules.languageModel via lsp-ltex-additional-rules-language-modelltex.additionalRules.neuralNetworkModel via lsp-ltex-additional-rules-neural-network-modelltex.additionalRules.word2VecModel via lsp-ltex-additional-rules-word-2-vec-modelltex.languageToolHttpServerUri via lsp-ltex-languagetool-http-server-uriltex.languageToolOrg.username via lsp-ltex-languagetool-org-usernameltex.languageToolOrg.apiKey via lsp-ltex-languagetool-org-api-keyltex.ltex-ls.path via lsp-ltex-ls-pathltex.ltex-ls.logLevel via lsp-ltex-log-levelltex.java.path via lsp-ltex-java-pathltex.java.initialHeapSize via lsp-ltex-java-initial-heap-sizeltex.java.maximumHeapSize via lsp-ltex-java-maximum-heap-sizeltex.sentenceCacheSize via lsp-ltex-sentence-cache-sizeltex.completionEnabled via lsp-ltex-completion-enabled (currently, not implemented)ltex.diagnosticSeverity via lsp-ltex-diagnostic-severityltex.checkFrequency via lsp-ltex-check-frequencyltex.clearDiagnosticsWhenClosingFile via lsp-ltex-clear-diagnostics-when-closing-fileltex.statusBarItem via lsp-ltex-status-bar-item (currently, not implemented)ltex.trace.server via lsp-ltex-trace-serverIf 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 --dev
To test the package's installation:
eask package
eask install
To test compilation:
eask compile
🪧 The following steps are optional, but we recommend you follow these lint results!
The built-in checkdoc linter:
eask lint checkdoc
The 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.
Emacs Lisp
98.0%
Makefile
2.0%
LSP Clients for LTEX
lsp-mode client leveraging LTEX Language Server.

(use-package lsp-ltex
:ensure t
:hook (text-mode . (lambda ()
(require 'lsp-ltex)
(lsp))) ; or lsp-deferred
:init
(setq lsp-ltex-version "15.2.0")) ; make sure you have set this, see below
For lsp-ltex to run you need to have ltex-ls installed and available.
Go to https://valentjn.github.io/ltex/ltex-ls/installation.html, download
the appropriate version, uncompress, and place it under ~/.emacs.d/.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 you will probably want to set the version
you want to use; for example (setq lsp-ltex-version "15.2.0") in the init
section of use-package.
| Commands | Description |
|---|---|
| lsp-ltex-upgrade-ls | Upgrade LTEX server, if not found install it instead. |
lsp-ltex supports following configuration. Each configuration is described in
detail in LTEX Settings.
ltex.enabled via lsp-ltex-enabledltex.language via lsp-ltex-languageltex.dictionary via lsp-ltex-dictionaryltex.disabledRules via lsp-ltex-disabled-rulesltex.enabledRules via lsp-ltex-enabled-rulesltex.hiddenFalsePositives via lsp-ltex-hidden-false-positivesltex.bibtex.fields via lsp-ltex-bibtex-fieldsltex.latex.commands via lsp-ltex-latex-commandsltex.latex.environments via lsp-ltex-latex-environmentsltex.markdown.nodes via lsp-ltex-markdown-nodesltex.additionalRules.enablePickyRules via lsp-ltex-additional-rules-enable-picky-rulesltex.additionalRules.motherTongue via lsp-ltex-mother-tongueltex.additionalRules.languageModel via lsp-ltex-additional-rules-language-modelltex.additionalRules.neuralNetworkModel via lsp-ltex-additional-rules-neural-network-modelltex.additionalRules.word2VecModel via lsp-ltex-additional-rules-word-2-vec-modelltex.languageToolHttpServerUri via lsp-ltex-languagetool-http-server-uriltex.languageToolOrg.username via lsp-ltex-languagetool-org-usernameltex.languageToolOrg.apiKey via lsp-ltex-languagetool-org-api-keyltex.ltex-ls.path via lsp-ltex-ls-pathltex.ltex-ls.logLevel via lsp-ltex-log-levelltex.java.path via lsp-ltex-java-pathltex.java.initialHeapSize via lsp-ltex-java-initial-heap-sizeltex.java.maximumHeapSize via lsp-ltex-java-maximum-heap-sizeltex.sentenceCacheSize via lsp-ltex-sentence-cache-sizeltex.completionEnabled via lsp-ltex-completion-enabled (currently, not implemented)ltex.diagnosticSeverity via lsp-ltex-diagnostic-severityltex.checkFrequency via lsp-ltex-check-frequencyltex.clearDiagnosticsWhenClosingFile via lsp-ltex-clear-diagnostics-when-closing-fileltex.statusBarItem via lsp-ltex-status-bar-item (currently, not implemented)ltex.trace.server via lsp-ltex-trace-serverIf 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 --dev
To test the package's installation:
eask package
eask install
To test compilation:
eask compile
🪧 The following steps are optional, but we recommend you follow these lint results!
The built-in checkdoc linter:
eask lint checkdoc
The 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.
Emacs Lisp
98.0%
Makefile
2.0%