nvim: add image plugin
This commit is contained in:
parent
0d3d176d3b
commit
4898ca8716
2 changed files with 27 additions and 0 deletions
23
pkgsets/nvim/image.nix
Normal file
23
pkgsets/nvim/image.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
|
||||
lib.mkIf (lib.elem "nvim::image" config.machine.pkgs) {
|
||||
programs.nvim-lazy = {
|
||||
lazyPlugins = [
|
||||
{
|
||||
lazy = false;
|
||||
dir = vPlug: vPlug.image-nvim;
|
||||
opts = {
|
||||
processor = "magick_cli";
|
||||
integrations.markdown = {
|
||||
only_render_image_at_cursor = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
extraLuaPackages = p: [ p.magick ];
|
||||
};
|
||||
}
|
|
@ -75,6 +75,10 @@ lib.mkIf (lib.elem "tmux" config.machine.services) {
|
|||
# Update window title
|
||||
set -g set-titles on
|
||||
set -g set-titles-string "tmux: #S / #W"
|
||||
|
||||
# Stuff for image display in nvim
|
||||
set -gq allow-passthrough on
|
||||
set -g visual-activity off
|
||||
'';
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue