Skip to content

Commit d34a02d

Browse files
authored
ci: Update issue templates
1 parent 2fd78fb commit d34a02d

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+43
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,49 @@ A clear and concise description of what you expected to happen.
2828
**Screenshots**
2929
If applicable, add screenshots to help explain your problem.
3030

31+
<details>
32+
<summary>repro.lua</summary>
33+
34+
```lua
35+
local root = vim.fn.fnamemodify("./.repro", ":p")
36+
37+
-- set stdpaths to use .repro
38+
for _, name in ipairs({ "config", "data", "state", "cache" }) do
39+
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
40+
end
41+
42+
-- bootstrap lazy
43+
local lazypath = root .. "/plugins/lazy.nvim"
44+
if not vim.loop.fs_stat(lazypath) then
45+
vim.fn.system({
46+
"git",
47+
"clone",
48+
"--filter=blob:none",
49+
"--single-branch",
50+
"https://github.com/folke/lazy.nvim.git",
51+
lazypath,
52+
})
53+
end
54+
vim.opt.runtimepath:prepend(lazypath)
55+
56+
-- install plugins
57+
local plugins = {
58+
-- do not remove the colorscheme!
59+
"folke/tokyonight.nvim",
60+
-- add any other pugins here
61+
}
62+
require("lazy").setup(plugins, {
63+
root = root .. "/plugins",
64+
})
65+
66+
-- add anything else here
67+
vim.opt.termguicolors = true
68+
-- do not remove the colorscheme!
69+
vim.cmd([[colorscheme tokyonight]])
70+
```
71+
72+
</details>
73+
3174
**Log**
3275
Please include any related errors from the Noice log file. (open with `:Lazy log`)
3376

0 commit comments

Comments
 (0)