tests/plugins: refactor (#235)

This commit is contained in:
Gaétan Lepage 2023-03-22 07:42:02 +01:00 committed by GitHub
parent 89f54be73a
commit db5061b4db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 485 additions and 744 deletions

View file

@ -0,0 +1,65 @@
{
# Empty configuration
empty = {
plugins.trouble.enable = true;
};
lsp = {
plugins.lsp = {
enable = true;
servers.clangd.enable = true;
};
plugins.trouble.enable = true;
};
# All the upstream default options of trouble
defaults = {
plugins.trouble = {
enable = true;
position = "bottom";
height = 10;
width = 50;
icons = true;
mode = "workspace_diagnostics";
foldOpen = "";
foldClosed = "";
group = true;
padding = true;
actionKeys = {
close = "q";
cancel = "<esc>";
refresh = "r";
jump = ["<cr>" "<tab>"];
openSplit = ["<c-x>"];
openVsplit = ["<c-v>"];
openTab = ["<c-t>"];
jumpClose = ["o"];
toggleMode = "m";
togglePreview = "P";
hover = "K";
preview = "p";
closeFolds = ["zM" "zm"];
openFolds = ["zR" "zr"];
toggleFold = ["zA" "za"];
previous = "k";
next = "j";
};
indentLines = true;
autoOpen = false;
autoClose = false;
autoPreview = true;
autoFold = false;
autoJump = ["lsp_definitions"];
signs = {
error = "";
warning = "";
hint = "";
information = "";
other = "";
};
useDiagnosticSigns = false;
};
};
}