chore: update bug report minimal config (#3161)

This commit is contained in:
James Trew
2024-06-15 09:09:23 -04:00
committed by GitHub
parent 25f04509f7
commit a0435361ba

View File

@@ -76,44 +76,45 @@ body:
- type: textarea - type: textarea
attributes: attributes:
label: "Minimal config" 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." description: "Minimal(!) configuration necessary to reproduce the issue. Save this as `minimal.lua` and run with `nvim -nu minimal.lua`. If _absolutely_ necessary, add plugins and config options from your `init.lua` at the indicated lines."
render: Lua render: Lua
value: | value: |
vim.cmd [[set runtimepath=$VIMRUNTIME]] local root = vim.fn.fnamemodify("./.repro", ":p")
vim.cmd [[set packpath=/tmp/nvim/site]]
local package_root = '/tmp/nvim/site/pack' -- set stdpaths to use .repro
local install_path = package_root .. '/packer/start/packer.nvim' for _, name in ipairs { "config", "data", "state", "cache" } do
local function load_plugins() vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
require('packer').startup { end
{
'wbthomason/packer.nvim', -- bootstrap lazy
{ local lazypath = root .. "/plugins/lazy.nvim"
'nvim-telescope/telescope.nvim', if not vim.uv.fs_stat(lazypath) then
requires = { vim.fn.system {
'nvim-lua/plenary.nvim', "git",
{ 'nvim-telescope/telescope-fzf-native.nvim', run = 'make' }, "clone",
}, "--filter=blob:none",
}, "https://github.com/folke/lazy.nvim.git",
-- ADD PLUGINS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE lazypath,
},
config = {
package_root = package_root,
compile_path = install_path .. '/plugin/packer_compiled.lua',
display = { non_interactive = true },
},
} }
end end
_G.load_config = function() vim.opt.runtimepath:prepend(lazypath)
require('telescope').setup()
require('telescope').load_extension('fzf') -- install plugins
local plugins = {
{
"nvim-telescope/telescope.nvim",
dependencies = {
"nvim-lua/plenary.nvim",
},
config = function()
-- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE -- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
end require("telescope").setup {}
if vim.fn.isdirectory(install_path) == 0 then end,
print("Installing Telescope and dependencies.") },
vim.fn.system { 'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', install_path } }
end
load_plugins() require("lazy").setup(plugins, {
require('packer').sync() root = root .. "/plugins",
vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]] })
validations: validations:
required: true required: true