|
6 | 6 | - type: markdown
|
7 | 7 | attributes:
|
8 | 8 | value: |
|
9 |
| - **Before** reporting an issue, make sure to read the [documentation](https://github.com/folke/lazy.nvim) and search [existing issues](https://github.com/folke/lazy.nvim/issues). Usage questions such as ***"How do I...?"*** belong in [Discussions](https://github.com/folke/lazy.nvim/discussions) and will be closed. |
| 9 | + **Before** reporting an issue, make sure to read the [documentation](https://github.com/folke/lazy.nvim) |
| 10 | + and search [existing issues](https://github.com/folke/lazy.nvim/issues). |
| 11 | +
|
| 12 | + Usage questions such as ***"How do I...?"*** belong in [Discussions](https://github.com/folke/lazy.nvim/discussions) and will be closed. |
10 | 13 | - type: checkboxes
|
11 | 14 | attributes:
|
12 | 15 | label: Did you check docs and existing issues?
|
@@ -57,32 +60,14 @@ body:
|
57 | 60 | label: Repro
|
58 | 61 | description: Minimal `init.lua` to reproduce this issue. Save as `repro.lua` and run with `nvim -u repro.lua`
|
59 | 62 | value: |
|
60 |
| - -- DO NOT change the paths and don't remove the colorscheme |
61 |
| - local root = vim.fn.fnamemodify("./.repro", ":p") |
62 |
| -
|
63 |
| - -- set stdpaths to use .repro |
64 |
| - for _, name in ipairs({ "config", "data", "state", "cache" }) do |
65 |
| - vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name |
66 |
| - end |
| 63 | + vim.env.LAZY_STDPATH = ".repro" |
| 64 | + load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))() |
67 | 65 |
|
68 |
| - -- bootstrap lazy |
69 |
| - local lazypath = root .. "/plugins/lazy.nvim" |
70 |
| - if not vim.loop.fs_stat(lazypath) then |
71 |
| - vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, }) |
72 |
| - end |
73 |
| - vim.opt.runtimepath:prepend(lazypath) |
74 |
| -
|
75 |
| - -- install plugins |
76 |
| - local plugins = { |
77 |
| - "folke/tokyonight.nvim", |
78 |
| - -- add any other plugins here |
79 |
| - } |
80 |
| - require("lazy").setup(plugins, { |
81 |
| - root = root .. "/plugins", |
| 66 | + require("lazy.minit").repro({ |
| 67 | + spec = { |
| 68 | + -- add any other plugins here |
| 69 | + }, |
82 | 70 | })
|
83 |
| -
|
84 |
| - vim.cmd.colorscheme("tokyonight") |
85 |
| - -- add anything else here |
86 | 71 | render: Lua
|
87 | 72 | validations:
|
88 | 73 | required: false
|
0 commit comments