You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my project (https://github.com/mikavilpas/yazi.nvim), I have a lazy.nvim lua script that I have been handing out to some people who have had issues. We have had good success with it, the issues being (mostly) easily reproducible.
Here's what I have used as a reference:
Details
-- DO NOT change the paths and don't remove the colorschemelocalroot=vim.fn.fnamemodify('./.repro', ':p')
-- set stdpaths to use .reprofor_, nameinipairs({ 'config', 'data', 'state', 'cache' }) dovim.env[('XDG_%s_HOME'):format(name:upper())] =root..'/' ..nameend-- bootstrap lazylocallazypath=root..'/plugins/lazy.nvim'ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({
'git',
'clone',
'--filter=blob:none',
'https://github.com/folke/lazy.nvim.git',
lazypath,
})
endvim.opt.runtimepath:prepend(lazypath)
vim.g.mapleader=''-- install pluginslocalplugins= {
'folke/tokyonight.nvim',
{
'mikavilpas/yazi.nvim',
dependencies= {
'nvim-lua/plenary.nvim',
},
event='VeryLazy',
keys= {
{
-- 👇 choose your own keymapping'<leader>fy',
function()
require('yazi').yazi()
end,
{ desc='Open the file manager' },
},
},
opts= {
open_for_directories=false,
},
},
}
require('lazy').setup(plugins, {
root=root..'/plugins',
})
vim.cmd.colorscheme('tokyonight')
-- add anything else here
I copied it from the lazy.nvim project and slightly adapted it.
Disregarding the lazy.nvim specific parts, in principle I think this could be a good addition to the guide.
What do you think? How do you reproduce issues in your projects?
The text was updated successfully, but these errors were encountered:
In my project (https://github.com/mikavilpas/yazi.nvim), I have a lazy.nvim lua script that I have been handing out to some people who have had issues. We have had good success with it, the issues being (mostly) easily reproducible.
Here's what I have used as a reference:
Details
I copied it from the lazy.nvim project and slightly adapted it.
Disregarding the lazy.nvim specific parts, in principle I think this could be a good addition to the guide.
What do you think? How do you reproduce issues in your projects?
The text was updated successfully, but these errors were encountered: