tests/lsp: move language server tests to separate folder

This commit is contained in:
Gaetan Lepage 2024-05-02 22:52:59 +02:00 committed by Gaétan Lepage
parent 0a294ad931
commit d57c962d6e
4 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,48 @@
{
example = {
plugins.lsp = {
enable = true;
servers.ccls = {
enable = true;
initOptions = {
cache = {
directory = ".ccls-cache";
format = "binary";
retainInMemory = 1;
};
clang = {
extraArgs = [];
excludeArgs = ["-frounding-math"];
pathMappings = ["/remote/>/host/"];
resourceDir = "";
};
client = {
snippetSupport = true;
};
completion = {
placeholder = false;
detailedLabel = true;
filterAndSort = true;
};
compilationDatabaseDirectory = "out/release";
diagnostics = {
onOpen = 0;
onChange = 1000;
onSave = 0;
};
index = {
threads = 0;
comments = 2;
multiVersion = 0;
multiVersionBlacklist = ["^/usr/include"];
initialBlacklist = ["."];
onChange = false;
trackDependency = 2;
};
};
};
};
};
}

View file

@ -0,0 +1,32 @@
{
example = {
plugins.lsp = {
enable = true;
servers.nixd = {
enable = true;
settings = {
eval = {
target = {
args = ["foo" "bar"];
installable = "";
};
depth = 0;
workers = 3;
};
formatting = {
command = "nixpkgs-fmt";
};
options = {
enable = true;
target = {
args = ["yes" "no" "maybe"];
installable = "";
};
};
};
};
};
};
}

View file

@ -0,0 +1,160 @@
{
example = {
plugins.lsp = {
enable = true;
servers.pylsp = {
enable = true;
settings = {
configurationSources = "pycodestyle";
plugins = {
autopep8 = {
enabled = true;
};
flake8 = {
config = null;
enabled = true;
exclude = [];
executable = "flake8";
filename = null;
hangClosing = null;
ignore = [];
maxComplexity = null;
maxLineLength = null;
indentSize = null;
perFileIgnores = [];
select = null;
};
jedi = {
auto_import_modules = ["numpy"];
extra_paths = [];
environment = null;
};
jedi_completion = {
enabled = true;
include_params = true;
include_class_objects = false;
include_function_objects = false;
fuzzy = false;
eager = false;
resolve_at_most = 25;
cache_for = ["pandas" "numpy" "tensorflow" "matplotlib"];
};
jedi_definition = {
enabled = true;
follow_imports = true;
follow_builtin_imports = true;
follow_builtin_definitions = true;
};
jedi_hover = {
enabled = true;
};
jedi_references = {
enabled = true;
};
jedi_signature_help = {
enabled = true;
};
jedi_symbols = {
enabled = true;
all_scopes = true;
include_import_symbols = true;
};
mccabe = {
enabled = true;
threshold = 15;
};
preload = {
enabled = true;
modules = [];
};
pycodestyle = {
enabled = true;
exclude = [];
filename = [];
ropeFolder = null;
ignore = [];
hangClosing = true;
maxLineLength = 80;
indentSize = 4;
};
pydocstyle = {
enabled = false;
convention = null;
addIgnore = [];
addSelect = [];
ignore = [];
select = null;
match = "(?!test_).*\\.py";
matchDir = "[^\\.].*";
};
pyflakes = {
enabled = true;
};
pylint = {
enabled = true;
args = [];
executable = null;
};
rope_autoimport = {
enabled = true;
memory = false;
};
rope_completion = {
enabled = true;
eager = false;
};
yapf = {
enabled = true;
};
# Third party plugins
pylsp_mypy = {
enabled = true;
live_mode = true;
dmypy = false;
strict = false;
overrides = [true];
dmypy_status_file = ".dmypy.json";
config_sub_paths = [];
report_progress = false;
};
black = {
enabled = true;
cache_config = true;
line_length = 100;
preview = true;
};
memestra = {
enabled = true;
};
rope = {
enabled = true;
};
ruff = {
enabled = true;
config = "/foo/bar/pyproject.toml";
exclude = ["foo" "bar"];
executable = "/foo/bar/ruff";
ignore = ["E42" "E720"];
extendIgnore = ["E12"];
lineLength = 123;
perFileIgnores = {
"__init__.py" = ["E402"];
"path/to/file.py" = ["E402"];
};
select = ["E01" "E56"];
extendSelect = ["E68"];
format = ["E90"];
};
};
rope = {
extensionModules = null;
ropeFolder = null;
};
};
};
};
};
}

View file

@ -0,0 +1,128 @@
{
example = {
plugins.lsp = {
enable = true;
servers.svelte = {
enable = true;
initOptions = {
svelte = {
plugin = {
typescript = {
enable = true;
diagnostics = {
enable = true;
};
hover = {
enable = true;
};
documentSymbols = {
enable = true;
};
completions = {
enable = true;
};
codeActions = {
enable = true;
};
selectionRange = {
enable = true;
};
signatureHelp = {
enable = true;
};
semanticTokens = {
enable = true;
};
};
css = {
enable = true;
globals = null;
diagnostics = {
enable = true;
};
hover = {
enable = true;
};
completions = {
enable = true;
emmet = true;
};
documentColors = {
enable = true;
};
colorPresentations = {
enable = true;
};
documentSymbols = {
enable = true;
};
selectionRange = {
enable = true;
};
};
html = {
enable = true;
hover = {
enable = true;
};
completions = {
enable = true;
emmet = true;
};
tagComplete = {
enable = true;
};
documentSymbols = {
enable = true;
};
linkedEditing = {
enable = true;
};
};
svelte = {
enable = true;
diagnostics = {
enable = true;
};
compilerWarnings = {
css-unused-selector = "ignore";
unused-export-let = "error";
};
format = {
enable = true;
config = {
svelteSortOrder = "options-scripts-markup-styles";
svelteStrictMode = false;
svelteAllowShorthand = true;
svelteBracketNewLine = true;
svelteIndentScriptAndStyle = true;
printWidth = 80;
singleQuote = false;
};
};
hover = {
enable = true;
};
completions = {
enable = true;
};
rename = {
enable = true;
};
codeActions = {
enable = true;
};
selectionRange = {
enable = true;
};
defaultScriptLanguage = null;
};
};
};
};
};
};
};
}