Created
June 10, 2024 09:21
-
-
Save t18n/98fc0642cdf213afaabe4fff9a643959 to your computer and use it in GitHub Desktop.
Lazy.nvim repro template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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", "https://github.com/folke/lazy.nvim.git", lazypath, }) | |
end | |
vim.opt.runtimepath:prepend(lazypath) | |
-- install plugins | |
local plugins = { | |
"folke/tokyonight.nvim", | |
-- TODO: 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
Create your own copy with