SoloVim/lua/solo/lazy.lua
2024-03-24 11:35:27 +02:00

34 lines
847 B
Lua

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
vim.g.mapleader = " "
vim.g.maplocalleader = " "
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 opts = {
ui = {
-- The border to use for the UI window. Accepts same border values as |nvim_open_win()|.
border = "rounded",
},
change_detection = {
-- automatically check for config file changes and reload the ui
enabled = false,
notify = true, -- get a notification when changes are found
},
install = {
-- try to load one of these colorschemes when starting an installation during startup
colorscheme = { "tokyonight" },
},
}
require("lazy").setup("plugins", opts)