Skip to content

<leader>p doesn't work for me #19

@DwcksDinh

Description

@DwcksDinh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions