31 lines
667 B
Lua
31 lines
667 B
Lua
-- Path where lazy.nvim will be installed
|
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
|
|
|
-- Auto-install lazy.nvim if not present
|
|
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",
|
|
lazypath,
|
|
})
|
|
end
|
|
|
|
-- Add lazy.nvim to runtime path
|
|
vim.opt.rtp:prepend(lazypath)
|
|
|
|
-- Initialize lazy.nvim
|
|
require("lazy").setup({
|
|
{
|
|
"folke/tokyonight.nvim",
|
|
lazy = false, -- load immediately
|
|
priority = 1000, -- load before other plugins
|
|
config = function()
|
|
vim.cmd("colorscheme tokyonight")
|
|
end,
|
|
},
|
|
})
|
|
|