2024-02-23 18:23:02 +00:00
|
|
|
-- Bootstrap lazy.nvim plugin manager
|
|
|
|
|
|
|
|
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 options = require("options")
|
|
|
|
require("lazy").setup({
|
|
|
|
spec = {
|
|
|
|
{
|
2024-04-13 08:49:11 +00:00
|
|
|
import = "plugins",
|
|
|
|
},
|
2024-02-23 18:23:02 +00:00
|
|
|
},
|
|
|
|
install = {
|
|
|
|
missing = options.lazy.install_missing,
|
|
|
|
colorscheme = {
|
2024-04-13 08:49:11 +00:00
|
|
|
options.ui.theme,
|
|
|
|
},
|
2024-02-23 18:23:02 +00:00
|
|
|
},
|
|
|
|
ui = {
|
|
|
|
size = {
|
2024-04-13 08:49:11 +00:00
|
|
|
width = options.ui.popup.width,
|
|
|
|
height = options.ui.popup.height,
|
|
|
|
},
|
|
|
|
border = options.ui.border,
|
|
|
|
wrap = true,
|
2024-02-23 18:23:02 +00:00
|
|
|
icons = options.lazy.icons,
|
2024-04-13 08:49:11 +00:00
|
|
|
},
|
2024-02-23 18:23:02 +00:00
|
|
|
})
|