Neovim/lua/bootstrap.lua

39 lines
883 B
Lua
Raw Normal View History

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 = {
{
import = "plugins",
},
2024-02-23 18:23:02 +00:00
},
install = {
missing = options.lazy.install_missing,
colorscheme = {
options.ui.theme,
},
2024-02-23 18:23:02 +00:00
},
ui = {
size = {
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-02-23 18:23:02 +00:00
})