Skip to content

Commit

Permalink
Merge pull request #1 from hankertrix/fix-language-variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs090218 authored Jan 30, 2025
2 parents a68eaac + a7b9dd2 commit 9e2411d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 <https://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.

See [`LICENSE`](./LICENSE.txt) for details.
6 changes: 3 additions & 3 deletions lsp-ltex-plus.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9e2411d

Please sign in to comment.