diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index b7603ef..929e6fc 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -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