nvim/lua/plugins/neotree.lua

19 lines
466 B
Lua
Raw Normal View History

2024-05-19 01:01:34 -04:00
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,
-- },
},
},
}