Skip to content

Instantly share code, notes, and snippets.

@b0o
Created December 5, 2023 03:16
Show Gist options
  • Save b0o/465f723846c93431eba86517fe945247 to your computer and use it in GitHub Desktop.
Save b0o/465f723846c93431eba86517fe945247 to your computer and use it in GitHub Desktop.
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")
-- 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
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"--single-branch",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
"folke/tokyonight.nvim",
{
"folke/noice.nvim",
opts = {},
dependencies = {
-- nui
"MunifTanjim/nui.nvim",
},
},
-- add any other plugins here
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment