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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -75,45 +75,46 @@ body:
required: true required: true
- 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 = { end
package_root = package_root, vim.opt.runtimepath:prepend(lazypath)
compile_path = install_path .. '/plugin/packer_compiled.lua',
display = { non_interactive = true }, -- install plugins
}, local plugins = {
} {
end "nvim-telescope/telescope.nvim",
_G.load_config = function() dependencies = {
require('telescope').setup() "nvim-lua/plenary.nvim",
require('telescope').load_extension('fzf') },
-- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE config = function()
end -- ADD INIT.LUA SETTINGS THAT ARE _NECESSARY_ FOR REPRODUCING THE ISSUE
if vim.fn.isdirectory(install_path) == 0 then require("telescope").setup {}
print("Installing Telescope and dependencies.") end,
vim.fn.system { 'git', 'clone', '--depth=1', 'https://github.com/wbthomason/packer.nvim', install_path } },
end }
load_plugins()
require('packer').sync() require("lazy").setup(plugins, {
vim.cmd [[autocmd User PackerComplete ++once echo "Ready!" | lua load_config()]] root = root .. "/plugins",
})
validations: validations:
required: true required: true