plugins/image: add support for sixel backend

This commit is contained in:
Gaetan Lepage 2025-09-14 16:54:33 +02:00 committed by Gaétan Lepage
parent ef367c456b
commit b999bdf5e1

View file

@ -29,6 +29,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
[
"kitty"
"ueberzug"
"sixel"
]
''
All the backends support rendering inside Tmux.
@ -36,6 +37,9 @@ lib.nixvim.plugins.mkNeovimPlugin {
- kitty - best in class, works great and is very snappy
- ueberzug - backed by ueberzugpp, supports any terminal, but has lower performance
- Supports multiple images thanks to @jstkdng.
- sixel - uses the Sixel graphics protocol, widely supported by many terminals
- Works with XTerm, WezTerm, foot, and other Sixel-compatible terminals
- ImageMagick is required for Sixel encoding
> [!Note]
> When choosing the `"ueberzug"` backend, nixvim will automatically add `ueberzugpp` as a dependency.
@ -135,5 +139,9 @@ lib.nixvim.plugins.mkNeovimPlugin {
name = "ueberzug";
enable = config.plugins.image.settings.backend == "ueberzug";
}
{
name = "imagemagick";
enable = config.plugins.image.settings.backend == "sixel";
}
];
}