;ELC ;;; Compiled ;;; in Emacs version 28.0.50 ;;; with all optimizations. (byte-code "\300\301!\210\300\302!\210\303\304\305\306\307\310\311\301\312\313& \210\314\315\316\317\320DD\321\322\323\311\304&\210\314\324\316\317\325DD\326\322\327\311\304&\210\314\330\316\317\331DD\332\322\327\311\304&\210\314\333\316\317\334DD\335\322\327\311\304&\210\314\336\316\317\337DD\340\322\341\311\304&\210\314\342\316\317\343DD\344\322\345\311\304&\210\314\346\316\317\347DD\350\322\327\311\304&\210\314\351\316\317\352DD\353\322\323\311\304&\210\314\354\316\317\355DD\356\322\323\311\304&\210\314\357\316\317\360DD\361\322\323\311\304&\210\314\362\316\317\363DD\364\322\323\311\304&\210\314\365\316\317\366DD\367\322\323\311\304&\210\314\370\316\317\371DD\372\322\323\311\304&\210\314\373\316\317\374DD\375\322\323\311\304&\210\314\376\316\317\377DD\201@\322\323\311\304&\210\314\201A\316\317\201BDD\201C\322\201D\311\304&\210\314\201E\316\317\201FDD\201G\322\327\311\304&\210\314\201H\316\317\201IDD\201J\322\327\311\304&\210\314\201K\316\317\201LDD\201M\322\327\311\304&\210\314\201N\316\317\201ODD\201P\322\327\311\304&\210\314\201Q\316\317\201RDD\201S\322\327\311\304&\210\314\201T\316\317\201UDD\201V\322\201W\311\304&\210\314\201X\316\317\201YDD\201Z\322\327\311\304&\210\314\201[\316\317\201\\DD\201]\322\201D\311\304&\210\314\201^\316\317\201_DD\201`\322\201a\311\304&\210\314\201b\316\317\201cDD\201d\322\201a\311\304&\210\314\201e\316\317\201fDD\201g\322\201a\311\304&\210\314\201h\316\317\201iDD\201j\322\201k\311\304&\210\314\201l\316\317\201mDD\201n\322\201o\311\304&\210\314\201p\316\317\201qDD\201r\322\201D\311\304&\210\314\201s\316\317\201tDD\201u\322\201v\311\304&\207" [require lsp-mode f 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\nLanguageTool)." lsp-ltex-enabled-rules #[0 "\300\207" [nil] 1] "Lists of rules that should be enabled (if disabled by default by\nLanguageTool)." 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\nwith 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\nby 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\nn-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,\nbuilt-in version of LanguageTool. Instead, LTEX will connect to an\nexternal 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,\nLTEX automatically downloads a Java distribution (AdoptOpenJDK), stores it\nin the folder of the extension, and uses it to run ltex-ls. You can point\nthis setting to an existing Java installation on your computer to use that\ninstallation 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\ntrying 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 (#$ . 7108)]) #@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 (#$ . 7496)]) #@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 (#$ . 7740)]) #@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 (#$ . 8020)]) #@43 Startup command for LTEX language server. (defalias 'lsp-ltex--server-command #[0 "\300 C\207" [lsp-ltex--server-entry] 1 (#$ . 8295)]) (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)