nix-community.nixvim/tests/test-sources/plugins/ui/image.nix
Matt Sturgeon 7b2a6cd9e6
tests: tests.dontRun -> test.runNvim
Convert all test-cases to use the new `test.runNvim` module option.
2024-08-20 00:46:30 +01:00

77 lines
1.8 KiB
Nix

{
empty = {
# At runtime, the plugin tries to get the size of the terminal which doesn't exist in the
# headless environment.
test.runNvim = false;
plugins.image.enable = true;
};
defaults = {
# At runtime, the plugin tries to get the size of the terminal which doesn't exist in the
# headless environment.
test.runNvim = false;
plugins.image = {
enable = true;
backend = "kitty";
integrations = {
markdown = {
enabled = true;
clearInInsertMode = false;
downloadRemoteImages = true;
onlyRenderImageAtCursor = false;
filetypes = [
"markdown"
"vimwiki"
];
};
neorg = {
enabled = true;
clearInInsertMode = false;
downloadRemoteImages = true;
onlyRenderImageAtCursor = false;
filetypes = [ "norg" ];
};
syslang = {
enabled = true;
clearInInsertMode = false;
downloadRemoteImages = true;
onlyRenderImageAtCursor = false;
filetypes = [ "syslang" ];
};
};
maxWidth = null;
maxHeight = null;
maxWidthWindowPercentage = null;
maxHeightWindowPercentage = 50;
windowOverlapClearEnabled = false;
windowOverlapClearFtIgnore = [
"cmp_menu"
"cmp_docs"
""
];
editorOnlyRenderWhenFocused = false;
tmuxShowOnlyInActiveWindow = false;
hijackFilePatterns = [
"*.png"
"*.jpg"
"*.jpeg"
"*.gif"
"*.webp"
];
};
};
ueberzug-backend = {
# At runtime, the plugin tries to get the size of the terminal which doesn't exist in the
# headless environment.
test.runNvim = false;
plugins.image = {
enable = true;
backend = "ueberzug";
};
};
}