mirror of
https://github.com/lewis6991/gitsigns.nvim
synced 2025-02-20 22:47:23 +00:00
chore: update issue template
This commit is contained in:
parent
11425117a9
commit
e2b2730254
107
.github/ISSUE_TEMPLATE/bug_report.yaml
vendored
107
.github/ISSUE_TEMPLATE/bug_report.yaml
vendored
@ -10,7 +10,7 @@ body:
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: "Description"
|
||||
description: "A short description of the problem you are reporting."
|
||||
description: "A comprehensive description of the problem you are reporting."
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
@ -25,15 +25,6 @@ body:
|
||||
label: "Operating system and version"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: "Steps to reproduce"
|
||||
description: "Steps to reproduce using the minimal config provided below."
|
||||
value: |
|
||||
1. `nvim -nu minimal.lua`
|
||||
2. ...
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: "Expected behavior"
|
||||
@ -44,64 +35,52 @@ body:
|
||||
description: "Observed behavior (may optionally include logs, images, or videos)."
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: "Minimal config"
|
||||
description: >
|
||||
Minimal(!) configuration necessary to reproduce the issue. Save this as
|
||||
`minimal.lua`. If necessary, add plugins and config options from your
|
||||
`init.lua` at the indicated lines.
|
||||
render: Lua
|
||||
value: |
|
||||
vim.o.packpath = '/tmp/nvim/site'
|
||||
|
||||
local plugins = {
|
||||
gitsigns = 'https://github.com/lewis6991/gitsigns.nvim',
|
||||
plenary = 'https://github.com/nvim-lua/plenary.nvim',
|
||||
-- ADD OTHER PLUGINS _NECESSARY_ TO REPRODUCE THE ISSUE
|
||||
}
|
||||
|
||||
for name, url in pairs(plugins) do
|
||||
local install_path = '/tmp/nvim/site/pack/test/start/'..name
|
||||
if vim.fn.isdirectory(install_path) == 0 then
|
||||
vim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
|
||||
end
|
||||
end
|
||||
|
||||
require('gitsigns').setup{
|
||||
debug_mode = true, -- You must add this to enable debug messages
|
||||
-- ADD GITSIGNS CONFIG THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE
|
||||
}
|
||||
|
||||
-- ADD INIT.LUA SETTINGS THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: "Steps to reproduce"
|
||||
description: "Steps to reproduce using the minimal config provided."
|
||||
value: |
|
||||
1. `nvim -nu minimal.lua`
|
||||
2. ...
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: "Gitsigns debug messages"
|
||||
description: >
|
||||
Include the output of `:Gitsigns debug_messages`. If you think it's
|
||||
relevant maybe also provide the output of `:Gitsigns dump_cache`.
|
||||
|
||||
|
||||
Note: You must have `debug_mode = true` in `setup()`.
|
||||
- type: textarea
|
||||
attributes:
|
||||
label: "Minimal config"
|
||||
description: >
|
||||
Minimal(!) configuration necessary to reproduce the issue. Save this as
|
||||
`minimal.lua`. If _absolutely_ necessary, add plugins and config options
|
||||
from your `init.lua` at the indicated lines.
|
||||
render: Lua
|
||||
value: |
|
||||
vim.cmd [[set runtimepath=$VIMRUNTIME]]
|
||||
vim.cmd [[set packpath=/tmp/nvim/site]]
|
||||
local package_root = '/tmp/nvim/site/pack'
|
||||
local install_path = package_root .. '/packer/start/packer.nvim'
|
||||
|
||||
if vim.fn.isdirectory(install_path) == 0 then
|
||||
print("Installing Gitsigns and dependencies.")
|
||||
vim.fn.system { 'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', install_path }
|
||||
end
|
||||
|
||||
-- Load plugins
|
||||
require('packer').startup {
|
||||
{
|
||||
'wbthomason/packer.nvim',
|
||||
{
|
||||
'lewis6991/gitsigns.nvim',
|
||||
requires = { 'nvim-lua/plenary.nvim' },
|
||||
},
|
||||
-- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
|
||||
},
|
||||
config = {
|
||||
package_root = package_root,
|
||||
compile_path = install_path .. '/plugin/packer_compiled.lua',
|
||||
display = { non_interactive = true },
|
||||
},
|
||||
}
|
||||
|
||||
_G.load_config = function()
|
||||
require('gitsigns').setup{
|
||||
debug_mode = true, -- You must add this to enable debug messages
|
||||
-- GITSIGNS CONFIG THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
|
||||
}
|
||||
|
||||
-- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
|
||||
|
||||
-- ALSO INCLUDE GITSIGNS DEBUG MESSAGES
|
||||
vim.cmd('Gitsigns debug_messages')
|
||||
end
|
||||
|
||||
require('packer').sync()
|
||||
|
||||
vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]]
|
||||
validations:
|
||||
required: true
|
||||
|
Loading…
Reference in New Issue
Block a user