fix: fix image.nvim rocks

pull/99/head
fm39hz-laptop 2024-10-30 11:20:59 +07:00
parent 05ca04d98f
commit 8f52fb07f9
1 changed files with 19 additions and 33 deletions

View File

@ -1,35 +1,21 @@
return {
{
"vhyrro/luarocks.nvim",
lazy = true,
priority = 1001,
opts = {
rocks = { "magick" },
},
},
{
"3rd/image.nvim",
ft = { "markdown", "quarto", "vimwiki" },
dependencies = { "luarocks.nvim" },
opts = {
backend = "kitty",
integrations = {
markdown = {
enabled = true,
only_render_image_at_cursor = false,
filetypes = { "markdown", "vimwiki", "quarto" },
},
},
editor_only_render_when_focused = false,
window_overlap_clear_enabled = true,
-- window_overlap_clear_ft_ignore = { 'cmp_menu', 'cmp_docs', 'scrollview' },
tmux_show_only_in_active_window = true,
window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs", "scrollview", "scrollview_sign" },
max_width = nil,
max_height = nil,
max_width_window_percentage = nil,
max_height_window_percentage = 30,
kitty_method = "normal",
},
},
{
"3rd/image.nvim",
ft = { "markdown", "quarto", "vimwiki" },
dependencies = { "leafo/magick" },
opts = {
integrations = {
markdown = {
clear_in_insert_mode = true,
only_render_image_at_cursor = true,
},
},
html = {
enabled = true,
},
editor_only_render_when_focused = true,
window_overlap_clear_enabled = true, -- auto show/hide images when the editor gains/looses focus
tmux_show_only_in_active_window = true,
},
},
}