From 46e1e88ff2a38233dad63bcc4dbb705738f02cad Mon Sep 17 00:00:00 2001 From: rootiest Date: Mon, 17 Feb 2025 18:37:42 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Feat(image=20render):=20remove=20im?= =?UTF-8?q?age.nvim?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We can now render images in supported terminals with snacks, so image.nvim is now redundant and unnecessary --- lua/plugins/terminal.lua | 126 +++++++++++++++++++-------------------- 1 file changed, 63 insertions(+), 63 deletions(-) diff --git a/lua/plugins/terminal.lua b/lua/plugins/terminal.lua index 655372f..2b42eb3 100644 --- a/lua/plugins/terminal.lua +++ b/lua/plugins/terminal.lua @@ -11,69 +11,69 @@ return { build = require('data.types').smart_splits.build(), -- cond = not require('data.func').is_ghostty(), }, - { -- Image Renderer - '3rd/image.nvim', - lazy = true, - ft = require('data.types').image, - config = function() - require('image').setup({ - backend = 'kitty', -- Kitty will provide the best experience, but you need a compatible terminal - processor = 'magick_cli', - kitty_method = 'normal', - integrations = { - markdown = { - enabled = true, - clear_in_insert_mode = false, - download_remote_images = true, - only_render_image_at_cursor = false, - filetypes = { 'markdown', 'vimwiki' }, -- markdown extensions (ie. quarto) can go here - }, - neorg = { - enabled = true, - clear_in_insert_mode = false, - download_remote_images = true, - only_render_image_at_cursor = false, - filetypes = { 'norg' }, - }, - html = { - enabled = false, - }, - css = { - enabled = false, - }, - }, - max_width = 200, -- tweak to preference - max_height = 40, -- ^ - max_height_window_percentage = math.huge, -- this is necessary for a good experience - max_width_window_percentage = math.huge, - window_overlap_clear_enabled = false, - window_overlap_clear_ft_ignore = { - 'cmp_menu', - 'cmp_docs', - 'neotree', - 'neominimap', - 'minimap', - '', - }, - hijack_file_patterns = { - '*.png', - '*.jpg', - '*.jpeg', - '*.gif', - '*.webp', - '*.avif', - }, -- render image files as images when opened - }) - end, - cond = function() - -- Disable image rendering in Neovide - -- or when vim.g.useimage = false - if vim.g.useimage == false then - return false - end - return not vim.g.neovide - end, - }, + -- { -- Image Renderer + -- '3rd/image.nvim', + -- lazy = true, + -- ft = require('data.types').image, + -- config = function() + -- require('image').setup({ + -- backend = 'kitty', -- Kitty will provide the best experience, but you need a compatible terminal + -- processor = 'magick_cli', + -- kitty_method = 'normal', + -- integrations = { + -- markdown = { + -- enabled = true, + -- clear_in_insert_mode = false, + -- download_remote_images = true, + -- only_render_image_at_cursor = false, + -- filetypes = { 'markdown', 'vimwiki' }, -- markdown extensions (ie. quarto) can go here + -- }, + -- neorg = { + -- enabled = true, + -- clear_in_insert_mode = false, + -- download_remote_images = true, + -- only_render_image_at_cursor = false, + -- filetypes = { 'norg' }, + -- }, + -- html = { + -- enabled = false, + -- }, + -- css = { + -- enabled = false, + -- }, + -- }, + -- max_width = 200, -- tweak to preference + -- max_height = 40, -- ^ + -- max_height_window_percentage = math.huge, -- this is necessary for a good experience + -- max_width_window_percentage = math.huge, + -- window_overlap_clear_enabled = false, + -- window_overlap_clear_ft_ignore = { + -- 'cmp_menu', + -- 'cmp_docs', + -- 'neotree', + -- 'neominimap', + -- 'minimap', + -- '', + -- }, + -- hijack_file_patterns = { + -- '*.png', + -- '*.jpg', + -- '*.jpeg', + -- '*.gif', + -- '*.webp', + -- '*.avif', + -- }, -- render image files as images when opened + -- }) + -- end, + -- cond = function() + -- -- Disable image rendering in Neovide + -- -- or when vim.g.useimage = false + -- if vim.g.useimage == false then + -- return false + -- end + -- return not vim.g.neovide + -- end, + -- }, -- { -- ToggleTerm -- 'akinsho/toggleterm.nvim', -- event = 'TermOpen',