Skip to content

Commit 1273941

Browse files
committed
Add some missing options
1 parent 5ffa493 commit 1273941

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

lsp-ltex.el

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,26 @@ external LanguageTool HTTP server."
161161
:type 'string
162162
:group 'lsp-ltex)
163163

164+
(defcustom lsp-ltex-languagetool-org-username ""
165+
"Username/email as used to log in at languagetool.org for Premium API access.
166+
Only relevant if `lsp-ltex-languagetool-http-server-uri' is set."
167+
:type 'string
168+
:group 'lsp-ltex)
169+
170+
(defcustom lsp-ltex-languagetool-org-api-key ""
171+
"API key for Premium API access.
172+
Only relevant if `lsp-ltex-languagetool-http-server-uri' is set."
173+
:type 'string
174+
:group 'lsp-ltex)
175+
176+
(defcustom lsp-ltex-ls-path ""
177+
"If set to an empty string, LTEX automatically downloads ltex-ls from GitHub.
178+
It stores it in the folder of the extension, and uses it for the checking
179+
process. You can point this setting to an ltex-ls release you downloaded by
180+
yourself."
181+
:type 'directory
182+
:group 'lsp-ltex)
183+
164184
(defcustom lsp-ltex-log-level "fine"
165185
"Logging level (verbosity) of the ltex-ls server log."
166186
:type '(choice (const "severe")
@@ -199,6 +219,10 @@ This must be a positive integer."
199219
:type 'integer
200220
:group 'lsp-ltex)
201221

222+
(defcustom lsp-ltex-completion-enabled nil ;; TODO: Add proper implementation
223+
"If this this is enabled, auto-completion list for the current word is sent.
224+
The editor need to send a completion request.")
225+
202226
(defcustom lsp-ltex-diagnostic-severity "information"
203227
"Severity of the diagnostics corresponding to the grammar and spelling errors."
204228
:type '(choice (const "error")
@@ -466,14 +490,19 @@ This file is use to activate the language server."
466490
("ltex.additionalRules.neuralNetworkModel" lsp-ltex-additional-rules-neural-network-model)
467491
("ltex.additionalRules.word2VecModel" lsp-ltex-additional-rules-word-2-vec-model)
468492
("ltex.languageToolHttpServerUri" lsp-ltex-languagetool-http-server-uri)
493+
("ltex.languageToolOrg.username" lsp-ltex-languagetool-org-username)
494+
("ltex.languageToolOrg.apiKey" lsp-ltex-languagetool-org-api-key)
495+
("ltex.ltex-ls.path" lsp-ltex-ls-path)
469496
("ltex.ltex-ls.logLevel" lsp-ltex-log-level)
470497
("ltex.java.path" lsp-ltex-java-path)
471498
("ltex.java.initialHeapSize" lsp-ltex-java-initial-heap-size)
472499
("ltex.java.maximumHeapSize" lsp-ltex-java-maximum-heap-size)
473500
("ltex.sentenceCacheSize" lsp-ltex-sentence-cache-size)
501+
("ltex.completionEnabled" lsp-ltex-completion-enabled t)
474502
("ltex.diagnosticSeverity" lsp-ltex-diagnostic-severity)
475503
("ltex.checkFrequency" lsp-ltex-check-frequency)
476504
("ltex.clearDiagnosticsWhenClosingFile" lsp-ltex-clear-diagnostics-when-closing-file t)
505+
("ltex.statusBarItem" nil t) ;; TODO: Add implementation
477506
("ltex.trace.server" lsp-ltex-trace-server)))
478507

479508
(lsp-ltex--lsp-dependency)

0 commit comments

Comments
 (0)