-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
I have installed image_preview on wezterm and when i use neotree it doesn't work
here is my config:
neo-tree
return {
"nvim-neo-tree/neo-tree.nvim",
config = function()
require("neo-tree").setup({
filesystem = {
window = {
mappings = {
["<leader>p"] = "image_wezterm", -- hoặc một phím tắt khác
},
},
commands = {
image_wezterm = function(state)
local node = state.tree:get_node()
if node.type == "file" then
require("image_preview").PreviewImage(node.path)
end
end,
},
},
})
end,
}
and here is my image-preview config:
return {
"adelarsq/image_preview.nvim",
event = "VeryLazy",
config = function()
require("image_preview").setup()
end,
}
I currently use :
- Wezterm: 20240203.110809.0
- Neovim: 0.10.1
- Windows: 11
adelarsq
Metadata
Metadata
Assignees
Labels
No labels