mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-03-22 01:19:45 +01:00
31 lines
694 B
Lua
31 lines
694 B
Lua
require("base")
|
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/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",
|
|
"--branch=stable", -- latest stable release
|
|
lazypath,
|
|
})
|
|
end
|
|
vim.opt.rtp:prepend(lazypath)
|
|
local lazy_theme
|
|
if os.getenv("GTK_THEME") == "Nordic" then
|
|
lazy_theme = "nord"
|
|
elseif os.getenv("GTK_THEME") == "Catppuccin-Frappe-Pink" then
|
|
lazy_theme = "catppuccin-frappe"
|
|
else
|
|
lazy_theme = "catppuccin-latte"
|
|
end
|
|
local opts = {
|
|
install = {
|
|
colorscheme = { lazy_theme },
|
|
},
|
|
ui = {
|
|
size = { width = 1.0, height = 1.0 },
|
|
},
|
|
}
|
|
require("lazy").setup("plugins", opts)
|