Skip to content

Commit 743e3b5

Browse files
authored
Tweak Bug Report Form (#1230)
1 parent db873b3 commit 743e3b5

File tree

2 files changed

+50
-44
lines changed

2 files changed

+50
-44
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 16 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ body:
1616
attributes:
1717
label: "Neovim version"
1818
description: "Output of `nvim --version`. Please see nvim-tree.lua [minimum required version](https://github.com/kyazdani42/nvim-tree.lua#notice)."
19-
render: markdown
2019
placeholder: |
2120
NVIM v0.6.1
2221
Build type&#58 Release
2322
LuaJIT 2.1.0-beta3
23+
render: text
2424
validations:
2525
required: true
2626
- type: input
@@ -37,13 +37,26 @@ body:
3737
nvim-tree branch, commit or tag number
3838
validations:
3939
required: true
40+
- type: textarea
41+
attributes:
42+
label: "Minimal config"
43+
description: "Minimal(!) configuration necessary to reproduce the issue.
44+
45+
(Right click) save [nvt-min.lua](https://raw.githubusercontent.com/kyazdani42/nvim-tree.lua/master/.github/ISSUE_TEMPLATE/nvt-min.lua) to `/tmp` and run using `nvim -nu /tmp/nvt-min.lua`
46+
47+
If _absolutely_ necessary, add plugins and modify the nvim-tree setup at the indicated lines.
48+
49+
Paste the contents of your `/tmp/nvt-min.lua` here."
50+
render: lua
51+
validations:
52+
required: true
4053
- type: textarea
4154
attributes:
4255
label: "Steps to reproduce"
4356
description: "Steps to reproduce using the minimal config provided below."
4457
placeholder: |
45-
1. `nvim -nu /tmp/nvt-min.lua`
46-
2. `:NvimTreeOpen`
58+
1. nvim -nu /tmp/nvt-min.lua
59+
2. :NvimTreeOpen
4760
3. ...
4861
validations:
4962
required: true
@@ -55,45 +68,4 @@ body:
5568
attributes:
5669
label: "Actual behavior"
5770
description: "Observed behavior (may optionally include images, videos or a screencast)."
58-
- type: textarea
59-
attributes:
60-
label: "Minimal config"
61-
description: "Minimal(!) configuration necessary to reproduce the issue, using the latest version. Save this as `/tmp/nvt-min.lua` and run using `nvim -nu /tmp/nvt-min.lua`. If _absolutely_ necessary, add plugins and modify the nvim-tree setup at the indicated lines."
62-
render: Lua
63-
value: |
64-
vim.cmd [[set runtimepath=$VIMRUNTIME]]
65-
vim.cmd [[set packpath=/tmp/nvt-min/site]]
66-
local package_root = "/tmp/nvt-min/site/pack"
67-
local install_path = package_root .. "/packer/start/packer.nvim"
68-
local function load_plugins()
69-
require("packer").startup {
70-
{
71-
"wbthomason/packer.nvim",
72-
"kyazdani42/nvim-tree.lua",
73-
"kyazdani42/nvim-web-devicons",
74-
-- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
75-
},
76-
config = {
77-
package_root = package_root,
78-
compile_path = install_path .. "/plugin/packer_compiled.lua",
79-
display = { non_interactive = true },
80-
},
81-
}
82-
end
83-
if vim.fn.isdirectory(install_path) == 0 then
84-
print "Installing nvim-tree and dependencies."
85-
vim.fn.system { "git", "clone", "--depth=1", "https://github.com/wbthomason/packer.nvim", install_path }
86-
end
87-
load_plugins()
88-
require("packer").sync()
89-
vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua setup()]]
90-
vim.opt.termguicolors = true
91-
vim.opt.cursorline = true
92-
93-
-- MODIFY NVIM-TREE SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
94-
_G.setup = function()
95-
require("nvim-tree").setup {}
96-
end
97-
validations:
98-
required: true
9971

.github/ISSUE_TEMPLATE/nvt-min.lua

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
vim.cmd [[set runtimepath=$VIMRUNTIME]]
2+
vim.cmd [[set packpath=/tmp/nvt-min/site]]
3+
local package_root = "/tmp/nvt-min/site/pack"
4+
local install_path = package_root .. "/packer/start/packer.nvim"
5+
local function load_plugins()
6+
require("packer").startup {
7+
{
8+
"wbthomason/packer.nvim",
9+
"kyazdani42/nvim-tree.lua",
10+
"kyazdani42/nvim-web-devicons",
11+
-- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
12+
},
13+
config = {
14+
package_root = package_root,
15+
compile_path = install_path .. "/plugin/packer_compiled.lua",
16+
display = { non_interactive = true },
17+
},
18+
}
19+
end
20+
if vim.fn.isdirectory(install_path) == 0 then
21+
print "Installing nvim-tree and dependencies."
22+
vim.fn.system { "git", "clone", "--depth=1", "https://github.com/wbthomason/packer.nvim", install_path }
23+
end
24+
load_plugins()
25+
require("packer").sync()
26+
vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua setup()]]
27+
vim.opt.termguicolors = true
28+
vim.opt.cursorline = true
29+
30+
-- MODIFY NVIM-TREE SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
31+
_G.setup = function()
32+
require("nvim-tree").setup {}
33+
end
34+

0 commit comments

Comments
 (0)