diff --git a/pkgsets/nvim/image.nix b/pkgsets/nvim/image.nix new file mode 100644 index 0000000..f67fd5a --- /dev/null +++ b/pkgsets/nvim/image.nix @@ -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 ]; + }; +} diff --git a/services/tmux.nix b/services/tmux.nix index ecde932..4c75416 100644 --- a/services/tmux.nix +++ b/services/tmux.nix @@ -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; [