nvim/lua/plugins/neotree.lua
2024-05-19 01:01:34 -04:00

18 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,
-- },
},
},
}