mirror of
https://github.com/boxpositron/absolute-vim.git
synced 2026-02-28 03:30:36 +00:00
chore(image.lua): add lazy loading for the image plugin to improve performance and add support for additional file types (png, jpg, jpeg, gif, webp, svg)
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
return {
|
||||
-- see the image.nvim readme for more information about configuring this plugin
|
||||
"3rd/image.nvim",
|
||||
opts = {
|
||||
backend = "kitty", -- whatever backend you would like to use
|
||||
max_width = 100,
|
||||
max_height = 12,
|
||||
max_height_window_percentage = math.huge,
|
||||
max_width_window_percentage = math.huge,
|
||||
window_overlap_clear_enabled = true, -- toggles images when windows are overlapped
|
||||
window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs", "" },
|
||||
tmux_show_only_in_active_window = true,
|
||||
},
|
||||
-- see the image.nvim readme for more information about configuring this plugin
|
||||
"3rd/image.nvim",
|
||||
opts = {
|
||||
backend = "kitty", -- whatever backend you would like to use
|
||||
max_width = 100,
|
||||
max_height = 12,
|
||||
max_height_window_percentage = math.huge,
|
||||
max_width_window_percentage = math.huge,
|
||||
window_overlap_clear_enabled = true, -- toggles images when windows are overlapped
|
||||
window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs", "" },
|
||||
tmux_show_only_in_active_window = true,
|
||||
},
|
||||
lazy = true,
|
||||
ft = { "png", "jpg", "jpeg", "gif", "webp", "svg" },
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user