19 lines
466 B
Lua
19 lines
466 B
Lua
|
return {
|
||
|
{
|
||
|
"nvim-neo-tree/neo-tree.nvim",
|
||
|
opts = {
|
||
|
mappings = {
|
||
|
["<leader>p"] = { "toggle_preview", config = { use_float = true, use_image_nvim = true } },
|
||
|
},
|
||
|
-- commands = {
|
||
|
-- preview_image = function(state)
|
||
|
-- local node = state.tree:get_node()
|
||
|
-- if node.type == "file" then
|
||
|
-- require("image_preview").PreviewImage(node.path)
|
||
|
-- end
|
||
|
-- end,
|
||
|
-- },
|
||
|
},
|
||
|
},
|
||
|
}
|