mirror of
https://github.com/nix-community/nixvim.git
synced 2026-08-24 10:14:03 -05:00
plugins/image: add support for sixel backend
This commit is contained in:
committed by
Gaétan Lepage
parent
ef367c456b
commit
b999bdf5e1
@@ -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";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user