mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-07 14:55:59 +01:00
utility/images: fix unrelated options being part of 'integrations'
This commit is contained in:
parent
d7878b525c
commit
a6b133124d
1 changed files with 42 additions and 43 deletions
|
@ -59,58 +59,57 @@ in {
|
||||||
this will be scaled down to fit within this width.
|
this will be scaled down to fit within this width.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
maxHeight = mkOption {
|
maxHeight = mkOption {
|
||||||
type = with types; nullOr int;
|
type = with types; nullOr int;
|
||||||
default = null;
|
default = null;
|
||||||
description = ''
|
description = ''
|
||||||
The maximum height of images to render. Images larger than
|
The maximum height of images to render. Images larger than
|
||||||
this will be scaled down to fit within this height.
|
this will be scaled down to fit within this height.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
maxWidthWindowPercentage = mkOption {
|
maxWidthWindowPercentage = mkOption {
|
||||||
type = with types; nullOr int;
|
type = with types; nullOr int;
|
||||||
default = null;
|
default = null;
|
||||||
description = ''
|
description = ''
|
||||||
The maximum width of images to render as a percentage of the
|
The maximum width of images to render as a percentage of the
|
||||||
window width. Images larger than this will be scaled down to
|
window width. Images larger than this will be scaled down to
|
||||||
fit within this width.
|
fit within this width.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
maxHeightWindowPercentage = mkOption {
|
maxHeightWindowPercentage = mkOption {
|
||||||
type = with types; nullOr int;
|
type = with types; nullOr int;
|
||||||
default = 50;
|
default = 50;
|
||||||
description = ''
|
description = ''
|
||||||
The maximum height of images to render as a percentage of the
|
The maximum height of images to render as a percentage of the
|
||||||
window height. Images larger than this will be scaled down to
|
window height. Images larger than this will be scaled down to
|
||||||
fit within this height.
|
fit within this height.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
windowOverlapClear = {
|
windowOverlapClear = {
|
||||||
enable = mkEnableOption "clearing of images when they overlap with the window";
|
enable = mkEnableOption "clearing of images when they overlap with the window";
|
||||||
ftIgnore = mkOption {
|
ftIgnore = mkOption {
|
||||||
type = with types; listOf str;
|
|
||||||
default = ["cmp_menu" "cmp_docs" ""];
|
|
||||||
description = ''
|
|
||||||
Filetypes to ignore window overlap clearing in.
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
editorOnlyRenderWhenFocused = mkEnableOption "only rendering images when the editor is focused";
|
|
||||||
hijackFilePatterns = mkOption {
|
|
||||||
type = with types; listOf str;
|
type = with types; listOf str;
|
||||||
default = ["*.png" "*.jpg" "*.jpeg" "*.gif" "*.webp"];
|
default = ["cmp_menu" "cmp_docs" ""];
|
||||||
description = ''
|
description = ''
|
||||||
File patterns to hijack for image.nvim. This is useful for
|
Filetypes to ignore window overlap clearing in.
|
||||||
filetypes that don't have a dedicated integration.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
editorOnlyRenderWhenFocused = mkEnableOption "only rendering images when the editor is focused";
|
||||||
|
hijackFilePatterns = mkOption {
|
||||||
|
type = with types; listOf str;
|
||||||
|
default = ["*.png" "*.jpg" "*.jpeg" "*.gif" "*.webp"];
|
||||||
|
description = ''
|
||||||
|
File patterns to hijack for image.nvim. This is useful for
|
||||||
|
filetypes that don't have a dedicated integration.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue