plugins/null-ls: refactoring + tests (#251)

This commit is contained in:
Gaétan Lepage 2023-03-14 22:52:53 +01:00 committed by GitHub
parent 9d68949da7
commit 45bd82602e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 256 additions and 28 deletions

29
tests/plugins/null-ls.nix Normal file
View file

@ -0,0 +1,29 @@
{
# Empty configuration
empty = {
plugins.null-ls.enable = true;
};
default = {
plugins.null-ls = {
enable = true;
border = null;
cmd = ["nvim"];
debounce = 250;
debug = false;
defaultTimeout = 5000;
diagnosticConfig = null;
diagnosticsFormat = "#{m}";
fallbackSeverity = "error";
logLevel = "warn";
notifyFormat = "[null-ls] %s";
onAttach = null;
onInit = null;
onExit = null;
rootDir = null;
shouldAttach = null;
tempDir = null;
updateInInsert = false;
};
};
}