mirror of
https://github.com/rose-pine/neovim.git
synced 2025-10-15 12:38:53 +02:00
Update bug_report.yml
This commit is contained in:
parent
667851c05f
commit
2909b6868f
1 changed files with 15 additions and 26 deletions
41
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
41
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue