mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 10:48:35 +02:00
plugins/nvim-lsp: add ltex language server + test
This commit is contained in:
parent
c1655427d6
commit
eb6b49b396
4 changed files with 762 additions and 0 deletions
116
tests/test-sources/plugins/lsp/ltex.nix
Normal file
116
tests/test-sources/plugins/lsp/ltex.nix
Normal file
|
@ -0,0 +1,116 @@
|
|||
{
|
||||
example = {
|
||||
plugins.lsp = {
|
||||
enable = true;
|
||||
|
||||
servers.ltex = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
enabled = [
|
||||
"bibtex"
|
||||
"context"
|
||||
"context.tex"
|
||||
"html"
|
||||
"latex"
|
||||
"markdown"
|
||||
"org"
|
||||
"restructuredtext"
|
||||
"rsweave"
|
||||
];
|
||||
language = "en-US";
|
||||
dictionary = {
|
||||
"en-US" = [
|
||||
"adaptivity"
|
||||
"precomputed"
|
||||
"subproblem"
|
||||
];
|
||||
"de-DE" = [
|
||||
"B-Splines"
|
||||
":/path/to/externalFile.txt"
|
||||
];
|
||||
};
|
||||
disabledRules = {
|
||||
"en-US" = [
|
||||
"EN_QUOTES"
|
||||
"UPPERCASE_SENTENCE_START"
|
||||
":/path/to/externalFile.txt"
|
||||
];
|
||||
};
|
||||
enabledRules = {
|
||||
"en-GB" = [
|
||||
"PASSIVE_VOICE"
|
||||
"OXFORD_SPELLING_NOUNS"
|
||||
":/path/to/externalFile.txt"
|
||||
];
|
||||
};
|
||||
hiddenFalsePositives = {
|
||||
"en-US" = [":/path/to/externalFile.txt"];
|
||||
};
|
||||
fields = {
|
||||
maintitle = false;
|
||||
seealso = true;
|
||||
};
|
||||
latex = {
|
||||
commands = {
|
||||
"\\label{}" = "ignore";
|
||||
"\\documentclass[]{}" = "ignore";
|
||||
"\\cite{}" = "dummy";
|
||||
"\\cite[]{}" = "dummy";
|
||||
};
|
||||
environments = {
|
||||
lstlisting = "ignore";
|
||||
verbatim = "ignore";
|
||||
};
|
||||
};
|
||||
markdown = {
|
||||
nodes = {
|
||||
CodeBlock = "ignore";
|
||||
FencedCodeBlock = "ignore";
|
||||
AutoLink = "dummy";
|
||||
Code = "dummy";
|
||||
};
|
||||
};
|
||||
configurationTarget = {
|
||||
dictionary = "workspaceFolderExternalFile";
|
||||
disabledRules = "workspaceFolderExternalFile";
|
||||
hiddenFalsePositives = "workspaceFolderExternalFile";
|
||||
};
|
||||
additionalRules = {
|
||||
enablePickyRules = false;
|
||||
motherTongue = "de-DE";
|
||||
languageModel = "";
|
||||
neuralNetworkModel = "";
|
||||
word2VecModel = "";
|
||||
};
|
||||
languageToolHttpServerUri = "";
|
||||
languageToolOrg = {
|
||||
username = "";
|
||||
apiKey = "";
|
||||
};
|
||||
ltex-ls = {
|
||||
path = "";
|
||||
logLevel = "fine";
|
||||
};
|
||||
java = {
|
||||
path = "";
|
||||
initialHeapSize = 64;
|
||||
maximumHeapSize = 512;
|
||||
};
|
||||
sentenceCacheSize = 2000;
|
||||
completionEnabled = true;
|
||||
diagnosticSeverity = {
|
||||
PASSIVE_VOICE = "hint";
|
||||
default = "information";
|
||||
};
|
||||
checkFrequency = "edit";
|
||||
clearDiagnosticsWhenClosingFile = true;
|
||||
statusBarItem = false;
|
||||
trace = {
|
||||
server = "off";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue