;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\302\303\304\305\306\307\310\301\311\312& \210\313\314\315\316\317DD\320\321\322\310\303&\210\313\323\315\316\324DD\325\321\326\310\303&\210\313\327\315\316\330DD\331\321\326\310\303&\210\313\332\315\316\333DD\334\321\326\310\303&\210\313\335\315\316\336DD\337\321\340\310\303&\210\313\341\315\316\342DD\343\321\344\310\303&\210\313\345\315\316\346DD\347\321\326\310\303&\210\313\350\315\316\351DD\352\321\322\310\303&\210\313\353\315\316\354DD\355\321\322\310\303&\210\313\356\315\316\357DD\360\321\322\310\303&\210\313\361\315\316\362DD\363\321\322\310\303&\210\313\364\315\316\365DD\366\321\322\310\303&\210\313\367\315\316\370DD\371\321\322\310\303&\210\313\372\315\316\373DD\374\321\322\310\303&\210\313\375\315\316\376DD\377\321\322\310\303&\210\313\201@\315\316\201ADD\201B\321\201C\310\303&\210\313\201D\315\316\201EDD\201F\321\326\310\303&\210\313\201G\315\316\201HDD\201I\321\326\310\303&\210\313\201J\315\316\201KDD\201L\321\326\310\303&\210\313\201M\315\316\201NDD\201O\321\326\310\303&\210\313\201P\315\316\201QDD\201R\321\326\310\303&\210\313\201S\315\316\201TDD\201U\321\201V\310\303&\210\313\201W\315\316\201XDD\201Y\321\326\310\303&\210\313\201Z\315\316\201[DD\201\\\321\201C\310\303&\210\313\201]\315\316\201^DD\201_\321\201`\310\303&\210\313\201a\315\316\201bDD\201c\321\201`\310\303&\210\313\201d\315\316\201eDD\201f\321\201`\310\303&\210\313\201g\315\316\201hDD\201i\321\201j\310\303&\210\313\201k\315\316\201lDD\201m\321\201n\310\303&\210\313\201o\315\316\201pDD\201q\321\201C\310\303&\210\313\201r\315\316\201sDD\201t\321\201u\310\303&\207" [require lsp-mode custom-declare-group lsp-ltex nil "Settings for the LTEX Language Server.\n\nhttps://github.com/valentjn/ltex-ls" :prefix "lsp-ltex-" :group :link (url-link :tag "Github" "https://github.com/emacs-languagetool/lsp-ltex") custom-declare-variable lsp-ltex-active-modes funcall function #[0 "\300\207" [(text-mode latex-mode org-mode markdown-mode)] 1] "List of major mode that work with LTEX Language Server." :type list lsp-ltex-version #[0 "\300\207" [#1="11.0.0"] 1 #1#] "Version of LTEX language server." string lsp-ltex-extension-name #[0 "\301\302\"\207" [lsp-ltex-version format "ltex-ls-%s.tar.gz"] 3] "File name of the extension file from language server." lsp-ltex-server-download-url #[0 "\302\303 #\207" [lsp-ltex-version lsp-ltex-extension-name format "https://github.com/valentjn/ltex-ls/releases/download/%s/%s"] 4] "Automatic download url for lsp-ltex." lsp-ltex-server-store-path #[0 "\301\302\"\207" [lsp-server-install-dir f-join "ltex-ls"] 3] "The path to the file in which LTEX Language Server will be stored." file lsp-ltex-enabled #[0 "\300\207" [nil] 1] "Controls whether the extension is enabled." (choice (const :tag "None" nil) list) lsp-ltex-language #[0 "\300\207" [#2="en-US"] 1 #2#] "The language LanguageTool should check against." lsp-ltex-dictionary #[0 "\300\207" [nil] 1] "Lists of additional words that should not be counted as spelling errors." lsp-ltex-disabled-rules #[0 "\300\207" [nil] 1] "Lists of rules that should be disabled (if enabled by default by LanguageTool)." lsp-ltex-enabled-rules #[0 "\300\207" [nil] 1] "Lists of rules that should be enabled (if disabled by default by LanguageTool)." lsp-ltex-hidden-false-positives #[0 "\300\207" [nil] 1] "Lists of false-positive diagnostics to hide." lsp-ltex-bibtex-fields #[0 "\300\207" [nil] 1] "List of BibTEX fields whose values are to be checked in BibTEX files." lsp-ltex-latex-commands #[0 "\300\207" [nil] 1] "List of LATEX commands to be handled by the LATEX parser, listed together with empty arguments." lsp-ltex-latex-environments #[0 "\300\207" [nil] 1] "List of names of LATEX environments to be handled by the LATEX parser." lsp-ltex-markdown-nodes #[0 "\300\207" [nil] 1] "List of Markdown node types to be handled by the Markdown parser." lsp-ltex-additional-rules-enable-picky-rules #[0 "\300\207" [nil] 1] "Enable LanguageTool rules that are marked as picky and that are disabled by default, e.g., rules about passive voice, sentence length, etc." boolean lsp-ltex-mother-tongue #[0 "\300\207" [#3=""] 1 #3#] "Optional mother tongue of the user (e.g., \"de-DE\")." lsp-ltex-additional-rules-language-model #[0 "\300\207" [#3#] 1 #3#] "Optional path to a directory with rules of a language model with n-gram occurrence counts." lsp-ltex-additional-rules-neural-network-model #[0 "\300\207" [#3#] 1 #3#] "Optional path to a directory with rules of a pretrained neural network model." lsp-ltex-additional-rules-word-2-vec-model #[0 "\300\207" [#3#] 1 #3#] "Optional path to a directory with rules of a word2vec language model." lsp-ltex-languagetool-http-server-uri #[0 "\300\207" [#3#] 1 #3#] "If set to a non-empty string, LTEX will not use the bundled, built-in version of LanguageTool. Instead, LTEX will connect to an external LanguageTool HTTP server." lsp-ltex-log-level #[0 "\300\207" [#4="fine"] 1 #4#] "Logging level (verbosity) of the ltex-ls server log." (choice (const "severe") (const "warning") (const "info") (const "config") (const "fine") (const "finer") (const "finest")) lsp-ltex-java-path #[0 "\300\207" [#3#] 1 #3#] "If set to an empty string and LTEX could not find Java on your computer, LTEX automatically downloads a Java distribution (AdoptOpenJDK), stores it in the folder of the extension, and uses it to run ltex-ls. You can point this setting to an existing Java installation on your computer to use that installation instead." lsp-ltex-java-force-try-system-wide #[0 "\300\207" [nil] 1] "If non-nil, always try to use a system-wide Java installation before trying to use an automatically downloaded Java distribution." lsp-ltex-java-initial-heap-size #[0 "\300\207" [64] 1] "Initial size of the Java heap memory in megabytes.\nCorresponds to Java's -Xmx option, this must be a positive integer" integer lsp-ltex-java-maximum-heap-size #[0 "\300\207" [512] 1] "Maximum size of the Java heap memory in megabytes.\nCorresponds to Java's -Xmx option, this must be a positive integer" lsp-ltex-sentence-cache-size #[0 "\300\207" [2000] 1] "Size of the LanguageTool `ResultCache` in sentences.\nThis must be a positive integer." lsp-ltex-diagnostic-severity #[0 "\300\207" [#5="information"] 1 #5#] "Severity of the diagnostics corresponding to the grammar and spelling errors." (choice (const "error") (const "warning") (const "information") (const "hint")) lsp-ltex-check-frequency #[0 "\300\207" [#6="edit"] 1 #6#] "Controls when documents should be checked." (choice (const "edit") (const "save") (const "manual")) lsp-ltex-clear-diagnostics-when-closing-file #[0 "\300\207" [t] 1] "If non-nil, diagnostics of a file are cleared when the file is closed." lsp-ltex-trace-server #[0 "\300\207" [#7="off"] 1 #7#] "Debug setting to log the communication between language client and server." (choice (const "off") (const "messages") (const "verbose"))] 10) #@76 Return non-nil if CMD executed succesfully with ARGS. (fn CMD &rest ARGS) (defalias 'lsp-ltex--execute #[385 "\302 \303\304\"\216\305\306\307\310\311\312\310#Q!\313U+\207" [message-log-max inhibit-message current-window-configuration make-closure #[0 "\301\300!\207" [V0 set-window-configuration] 2] t nil shell-command " " mapconcat shell-quote-argument 0] 10 (#$ . 7079)]) #@96 Return full path of the downloaded extension. This is use to unzip the language server files. (defalias 'lsp-ltex--downloaded-extension-path #[0 "\302 \"\207" [lsp-ltex-server-store-path lsp-ltex-extension-name f-join] 3 (#$ . 7467)]) #@121 Return the root of the extension path. This is use to active language server and check if language server's existence. (defalias 'lsp-ltex--extension-root #[0 "\302\303\304 \"\"\207" [lsp-ltex-server-store-path lsp-ltex-version f-join format "ltex-ls-%s"] 5 (#$ . 7711)]) #@82 Return the server entry file. This file is use to activate the language server. (defalias 'lsp-ltex--server-entry #[0 "\301\302 \303\304=\203\305\202\306#\207" [system-type f-join lsp-ltex--extension-root "bin" windows-nt "ltex-ls.bat" "ltex-ls"] 5 (#$ . 7991)]) #@43 Startup command for LTEX language server. (defalias 'lsp-ltex--server-command #[0 "\300 C\207" [lsp-ltex--server-entry] 1 (#$ . 8266)]) (byte-code "\300\301!\210\302\303\304\305\306\307\310\311 \257#\210\312\313\314\315\316\317\"\320\321\322\323\324\325\326\303\327\330&\f!\210\331\332!\207" [lsp-register-custom-settings (("ltex.enabled" lsp-ltex-enabled) ("ltex.language" lsp-ltex-language) ("ltex.dictionary" lsp-ltex-dictionary) ("ltex.disabledRules" lsp-ltex-disabled-rules) ("ltex.enabledRules" lsp-ltex-enabled-rules) ("ltex.hiddenFalsePositives" lsp-ltex-hidden-false-positives) ("ltex.bibtex.fields" lsp-ltex-bibtex-fields) ("ltex.latex.commands" lsp-ltex-latex-commands) ("ltex.latex.environments" lsp-ltex-latex-environments) ("ltex.markdown-nodes" lsp-ltex-markdown-nodes) ("ltex.additionalRules.enablePickyRules" lsp-ltex-additional-rules-enable-picky-rules) ("ltex.additionalRules.motherTongue" lsp-ltex-mother-tongue) ("ltex.additionalRules.languageModel" lsp-ltex-additional-rules-language-model) ("ltex.additionalRules.neuralNetworkModel" lsp-ltex-additional-rules-neural-network-model) ("ltex.additionalRules.word2VecModel" lsp-ltex-additional-rules-word-2-vec-model) ("ltex.ltex-ls.languageToolHttpServerUri" lsp-ltex-languagetool-http-server-uri) ("ltex.ltex-ls.logLevel" lsp-ltex-log-level) ("ltex.java.path" lsp-ltex-java-path) ("ltex.java.forceTrySystemWide" lsp-ltex-java-force-try-system-wide) ("ltex.java.initialHeapSize" lsp-ltex-java-initial-heap-size) ("ltex.java.maximumHeapSize" lsp-ltex-java-maximum-heap-size) ("ltex.sentenceCacheSize" lsp-ltex-sentence-cache-size) ("ltex.diagnosticSeverity" lsp-ltex-diagnostic-severity) ("ltex.checkFrequency" lsp-ltex-check-frequency) ("ltex.clearDiagnosticsWhenClosingFile" lsp-ltex-clear-diagnostics-when-closing-file) ("ltex.trace.server" lsp-ltex-trace-server)) lsp-dependency ltex-ls (:system "ltex-ls") :download :url lsp-ltex-server-download-url :store-path lsp-ltex--downloaded-extension-path lsp-register-client make-lsp-client :new-connection lsp-stdio-connection lsp-ltex--server-command #[0 "\300\301 !\207" [f-exists\? lsp-ltex--extension-root] 2] :activation-fn #[128 "\301\302\"\207" [lsp-ltex-active-modes apply derived-mode-p] 4 "\n\n(fn &rest _)"] :priority -2 :add-on\? t :server-id :download-server-fn #[1028 "\300\301\302#\207" [lsp-package-ensure ltex-ls #[0 "\300\301 !\302\303\304\301 \305%?\205\306\307!\207" [f-dirname lsp-ltex--downloaded-extension-path lsp-ltex--execute "tar" "-xvzf" "-C" error "Error during the unzip process: tar"] 7]] 8 "\n\n(fn CLIENT CALLBACK ERROR-CALLBACK UPDATE\\=\\?)"] provide lsp-ltex] 14)