name: Bug Report
description: File a bug / issue.
title: "BUG: "
labels: [bug]
body:
  - type: markdown
    attributes:
      value: |
        **Before** reporting an issue, make sure to read [`:h neo-tree.txt`](https://github.com/nvim-neo-tree/neo-tree.nvim/blob/v3.x/doc/neo-tree.txt) and search [existing issues](https://github.com/nvim-neo-tree/neo-tree.nvim/issues). Usage questions such as ***"How do I...?"*** belong in [Discussions](https://github.com/nvim-neo-tree/neo-tree.nvim/discussions) and will be closed.
  - type: checkboxes
    attributes:
      label: Did you check docs and existing issues?
      description: Make sure you checked all of the below before submitting an issue
      options:
        - label: I have read all the docs.
          required: true
        - label: I have searched the existing issues.
          required: true
        - label: I have searched the existing discussions.
          required: true
  - type: input
    attributes:
      label: "Neovim Version (nvim -v)"
      placeholder: "NVIM v0.10.3"
    validations:
      required: true
  - type: input
    attributes:
      label: "Operating System / Version"
      placeholder: "MacOS 11.5"
    validations:
      required: true
  - type: textarea
    attributes:
      label: Describe the Bug
      description: A clear and concise description of what the bug is. Please include any related errors you see in Neovim.
    validations:
      required: true
  - type: textarea
    attributes:
      label: Screenshots, Traceback
      description: Screenshot and traceback if exists. Not required.
    validations:
      required: false
  - type: textarea
    attributes:
      label: Steps to Reproduce
      description: Steps to reproduce the behavior. Describe with the exact commands and keypresses.
      placeholder: |
        1.
        2.
        3.
    validations:
      required: true
  - type: textarea
    attributes:
      label: Expected Behavior
      description: A concise description of what you expected to happen.
    validations:
      required: true
  - type: textarea
    attributes:
      label: Your Configuration
      description: Minimal `init.lua` to reproduce this issue. Save as `repro.lua` and run with `nvim -u repro.lua`
      value: |
        -- template from https://lazy.folke.io/developers#reprolua, feel free to replace if you have your own minimal init.lua
        vim.env.LAZY_STDPATH = ".repro"
        load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

        require("lazy.minit").repro({
          spec = {
            {
              "nvim-neo-tree/neo-tree.nvim",
              branch = "v3.x", -- or "main"
              dependencies = {
                "nvim-lua/plenary.nvim",
                "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
                "MunifTanjim/nui.nvim",
                -- { "3rd/image.nvim", opts = {} }, -- Optional image support
              },
              lazy = false,
              ---@module "neo-tree"
              ---@type neotree.Config?
              opts = {
                -- fill any relevant options here
              },
            }
          },
        })
        vim.g.mapleader = " "
        vim.keymap.set("n", "<leader>e", "<Cmd>Neotree<CR>")
        -- do anything else you need to do to reproduce the issue
      render: Lua
    validations:
      required: true
