From a7b9dd2d68ce4cb3704e0aa620d0208cd82d84df Mon Sep 17 00:00:00 2001
From: hankertrix <91734413+hankertrix@users.noreply.github.com>
Date: Fri, 31 Jan 2025 00:21:28 +0800
Subject: [PATCH] Fixed language variable
Also fixed the link to LTEX+ in the README to point to LTEX+ instead
of LTEX.
---
README.md | 11 ++++++-----
lsp-ltex-plus.el | 6 +++---
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index dd3f3b4..660a0a7 100644
--- a/README.md
+++ b/README.md
@@ -26,11 +26,12 @@
```
For `lsp-ltex-plus` to run you need to have `ltex-ls-plus` 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
+Go to [`ltex-ls-plus` installation page](https://ltex-plus.github.io/ltex-plus/installation-usage.html),
+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
+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
@@ -146,6 +147,6 @@ 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 .
+along with this program. If not, see .
See [`LICENSE`](./LICENSE.txt) for details.
diff --git a/lsp-ltex-plus.el b/lsp-ltex-plus.el
index 912fa81..5965a9d 100644
--- a/lsp-ltex-plus.el
+++ b/lsp-ltex-plus.el
@@ -84,7 +84,7 @@ https://github.com/ltex-plus/ltex-ls-plus"
list)
:group 'lsp-ltex-plus)
-(defcustom lsp-ltex-plus-plus-language "en-US"
+(defcustom lsp-ltex-plus-language "en-US"
"The language LanguageTool should check against."
:type 'string
:group 'lsp-ltex-plus)
@@ -348,7 +348,7 @@ Return the deserialized object, or nil if the SYM.el file dont exist."
(defun lsp-ltex-plus-combine-plists (&rest plists)
"Create a single property list from all plists in PLISTS.
-Modified from `org-combine-plists'. This supposes the values to be vectors,
+Modified from `org-combine-plists'. This supposes the values to be vectors,
and concatenate them."
(let ((res (copy-sequence (pop plists)))
prop val plist)
@@ -507,7 +507,7 @@ This file is use to activate the language server."
(lsp-register-custom-settings
'(("ltex.enabled" lsp-ltex-plus-enabled)
- ("ltex.language" lsp-ltex-plus-plus-language)
+ ("ltex.language" lsp-ltex-plus-language)
("ltex.dictionary" lsp-ltex-plus--combined-dictionary)
("ltex.disabledRules" lsp-ltex-plus--combined-disabled-rules)
("ltex.enabledRules" lsp-ltex-plus-enabled-rules)