From 9a8b25bb2c7b4709667b0e92e1a67095947fa4cd Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 17 Jul 2023 22:18:02 -0400 Subject: [PATCH] neovim: Add image-nvim image-nvim is a new neovim plugin similar to hologram.nvim that adds support for inline images to neovim. --- home/neovim.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/home/neovim.nix b/home/neovim.nix index 3979eff..9013709 100644 --- a/home/neovim.nix +++ b/home/neovim.nix @@ -268,6 +268,34 @@ in } ''; } + { + plugin = image-nvim; + type = "lua"; + config = /* lua */ '' + require("image").setup({ + backend = "kitty", + integrations = { + markdown = { + enabled = true, + sizing_strategy = "auto", + download_remote_images = false, + clear_in_insert_mode = true, + }, + neorg = { + enabled = false, + }, + }, + max_width = nil, + max_height = nil, + max_width_window_percentage = nil, + max_height_window_percentage = 50, + kitty_method = "normal", + kitty_tmux_write_delay = 10, + window_overlap_clear_enabled = false, + window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs", "" }, + }) + ''; + } { plugin = git-blame-nvim; type = "lua";