mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-28 19:40:06 +02:00
plugins/image: init
This commit is contained in:
parent
99ebb5f074
commit
e1e417bff8
3 changed files with 203 additions and 0 deletions
64
tests/test-sources/plugins/ui/image.nix
Normal file
64
tests/test-sources/plugins/ui/image.nix
Normal file
|
@ -0,0 +1,64 @@
|
|||
{
|
||||
empty = {
|
||||
# At runtime, the plugin tries to get the size of the terminal which doesn't exist in the
|
||||
# headless environment.
|
||||
tests.dontRun = true;
|
||||
|
||||
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.
|
||||
tests.dontRun = true;
|
||||
|
||||
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.
|
||||
tests.dontRun = true;
|
||||
|
||||
plugins.image = {
|
||||
enable = true;
|
||||
backend = "ueberzug";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue