minimal.lua 530 B

12345678910111213141516
  1. -- Run this file as `nvim --clean -u minimal.lua`
  2. for name, url in pairs {
  3. -- ADD PLUGINS _NECESSARY_ TO REPRODUCE THE ISSUE, e.g:
  4. -- 'https://github.com/author1/plugin1',
  5. -- 'https://github.com/author2/plugin2',
  6. } do
  7. local install_path = vim.fn.fnamemodify('nvim_issue/' .. name, ':p')
  8. if vim.fn.isdirectory(install_path) == 0 then
  9. vim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
  10. end
  11. vim.opt.runtimepath:append(install_path)
  12. end
  13. -- ADD INIT.LUA SETTINGS _NECESSARY_ FOR REPRODUCING THE ISSUE