mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2025-10-21 20:10:41 +00:00
37 lines
947 B
Lua
37 lines
947 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 = { "rose-pine" },
|
|
},
|
|
rocks = {
|
|
hererocks = true, -- recommended if you do not have global installation of Lua 5.1.
|
|
},
|
|
}
|
|
|
|
require("lazy").setup("plugins", opts)
|