Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DwcksDinh opened this issue Oct 14, 2024 · 1 comment
Open

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

DwcksDinh opened this issue Oct 14, 2024 · 1 comment

Comments

@DwcksDinh
Copy link

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
Copy link
Owner

Maybe that something has changed on the neo-tree side. I don't it anymore, but I will take a look next few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants