|
6 | 6 | - type: markdown |
7 | 7 | attributes: |
8 | 8 | value: | |
9 | | - **Before** reporting an issue, make sure to read [`:h neo-tree.txt`](https://github.com/nvim-neo-tree/neo-tree.nvim/blob/v2.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. |
| 9 | + **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. |
10 | 10 | - type: checkboxes |
11 | 11 | attributes: |
12 | 12 | label: Did you check docs and existing issues? |
|
21 | 21 | - type: input |
22 | 22 | attributes: |
23 | 23 | label: "Neovim Version (nvim -v)" |
24 | | - placeholder: "0.8.0 commit db1b0ee3b30f" |
| 24 | + placeholder: "NVIM v0.10.3" |
25 | 25 | validations: |
26 | 26 | required: true |
27 | 27 | - type: input |
@@ -63,47 +63,30 @@ body: |
63 | 63 | label: Your Configuration |
64 | 64 | description: Minimal `init.lua` to reproduce this issue. Save as `repro.lua` and run with `nvim -u repro.lua` |
65 | 65 | value: | |
66 | | - -- DO NOT change the paths and don't remove the colorscheme |
67 | | - local root = vim.fn.fnamemodify("./.repro", ":p") |
| 66 | + -- template from https://lazy.folke.io/developers#reprolua, feel free to replace if you have your own minimal init.lua |
| 67 | + vim.env.LAZY_STDPATH = ".repro" |
| 68 | + load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))() |
68 | 69 |
|
69 | | - -- set stdpaths to use .repro |
70 | | - for _, name in ipairs({ "config", "data", "state", "cache" }) do |
71 | | - vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name |
72 | | - end |
73 | | -
|
74 | | - -- bootstrap lazy |
75 | | - local lazypath = root .. "/plugins/lazy.nvim" |
76 | | - if not vim.loop.fs_stat(lazypath) then |
77 | | - vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, }) |
78 | | - end |
79 | | - vim.opt.runtimepath:prepend(lazypath) |
80 | | -
|
81 | | - -- install plugins |
82 | | - local plugins = { |
83 | | - "folke/tokyonight.nvim", |
84 | | - -- add any other plugins here |
85 | | - } |
86 | | -
|
87 | | - local neotree_config = { |
88 | | - "nvim-neo-tree/neo-tree.nvim", |
89 | | - dependencies = { "MunifTanjim/nui.nvim", "nvim-tree/nvim-web-devicons", "nvim-lua/plenary.nvim" }, |
90 | | - cmd = { "Neotree" }, |
91 | | - keys = { |
92 | | - { "<Leader>e", "<Cmd>Neotree<CR>" }, -- change or remove this line if relevant. |
| 70 | + require("lazy.minit").repro({ |
| 71 | + spec = { |
| 72 | + { |
| 73 | + "nvim-neo-tree/neo-tree.nvim", |
| 74 | + branch = "v3.x", -- or "main" |
| 75 | + dependencies = { |
| 76 | + "nvim-lua/plenary.nvim", |
| 77 | + "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended |
| 78 | + "MunifTanjim/nui.nvim", |
| 79 | + -- { "3rd/image.nvim", opts = {} }, -- Optional image support |
| 80 | + }, |
| 81 | + opts = { |
| 82 | + -- fill any relevant options here |
| 83 | + }, |
| 84 | + } |
93 | 85 | }, |
94 | | - opts = { |
95 | | - -- Your config here |
96 | | - -- ... |
97 | | - }, |
98 | | - } |
99 | | -
|
100 | | - table.insert(plugins, neotree_config) |
101 | | - require("lazy").setup(plugins, { |
102 | | - root = root .. "/plugins", |
103 | 86 | }) |
104 | | -
|
105 | | - vim.cmd.colorscheme("tokyonight") |
106 | | - -- add anything else here |
| 87 | + vim.g.mapleader = " " |
| 88 | + vim.keymap.set("n", "<leader>e", "<Cmd>Neotree<CR>") |
| 89 | + -- do anything else you need to do to reproduce the issue |
107 | 90 | render: Lua |
108 | 91 | validations: |
109 | 92 | required: true |
0 commit comments