Update bug_report.yml

This commit is contained in:
not 2023-04-27 12:22:09 -05:00 committed by GitHub
commit 2909b6868f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,36 +46,25 @@ body:
label: Repro
description: Minimal `init.lua` to reproduce this issue. Save as `repro.lua` and run with `nvim -u repro.lua`
value: |
-- DO NOT change the paths and do not remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")
vim.o.packpath = '/tmp/nvim/site'
-- Set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
local plugins = {
rose_pine = 'https://github.com/rose-pine/neovim',
-- ADD OTHER PLUGINS _NECESSARY_ TO REPRODUCE THE ISSUE
}
-- Bootstrap lazy.nvim
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)
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
-- Install plugins
local plugins = {
"rose-pine/neovim",
name = "rose-pine",
config = function()
-- Add relevant Rosé Pine config below
require("rose-pine").setup({})
end
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
require('rose-pine').setup({
-- ADD ROSÉ PINE CONFIG THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE
})
vim.cmd.colorscheme("rose-pine")
-- Add anything else here
vim.cmd.colorscheme = "rose-pine"
render: Lua
validations:
required: false