11local lazypath = vim .fn .stdpath (" data" ) .. " /lazy/lazy.nvim"
2- if not vim .loop .fs_stat (lazypath ) then
3- -- bootstrap lazy.nvim
4- -- stylua: ignore
5- vim .fn .system ({ " git" , " clone" , " --filter=blob:none" , " https://github.com/folke/lazy.nvim.git" , " --branch=stable" , lazypath })
2+ if not (vim .uv or vim .loop ).fs_stat (lazypath ) then
3+ local lazyrepo = " https://github.com/folke/lazy.nvim.git"
4+ local out = vim .fn .system ({ " git" , " clone" , " --filter=blob:none" , " --branch=stable" , lazyrepo , lazypath })
5+ if vim .v .shell_error ~= 0 then
6+ vim .api .nvim_echo ({
7+ { " Failed to clone lazy.nvim:\n " , " ErrorMsg" },
8+ { out , " WarningMsg" },
9+ { " \n Press any key to exit..." },
10+ }, true , {})
11+ vim .fn .getchar ()
12+ os.exit (1 )
13+ end
614end
7- vim .opt .rtp :prepend (vim . env . LAZY or lazypath )
15+ vim .opt .rtp :prepend (lazypath )
816
917require (" lazy" ).setup ({
1018 spec = {
1119 -- add LazyVim and import its plugins
1220 { " LazyVim/LazyVim" , import = " lazyvim.plugins" },
13- -- import any extras modules here
14- -- { import = "lazyvim.plugins.extras.lang.typescript" },
15- -- { import = "lazyvim.plugins.extras.lang.json" },
16- -- { import = "lazyvim.plugins.extras.ui.mini-animate" },
1721 -- import/override with your plugins
1822 { import = " plugins" },
1923 },
@@ -26,8 +30,11 @@ require("lazy").setup({
2630 version = false , -- always use the latest git commit
2731 -- version = "*", -- try installing the latest stable version for plugins that support semver
2832 },
29- install = { colorscheme = { " tokyonight" , " habamax" } },
30- checker = { enabled = true }, -- automatically check for plugin updates
33+ install = { colorscheme = { " kanagawa" , " tokyonight" } },
34+ checker = {
35+ enabled = true , -- check for plugin updates periodically
36+ notify = false , -- notify on update
37+ }, -- automatically check for plugin updates
3138 performance = {
3239 rtp = {
3340 -- disable some rtp plugins
0 commit comments