diff options
author | Brahmajit Das <listout@listout.xyz> | 2025-06-04 03:59:15 +0530 |
---|---|---|
committer | Brahmajit Das <listout@listout.xyz> | 2025-06-04 03:59:15 +0530 |
commit | de88a28977d28ce83d4cfb636bffbd3bcfc35a21 (patch) | |
tree | 8b28cbeaa664ffe1bce9524884416b8c8eeb3d23 /lua/config/lazy.lua | |
parent | f45bae9a14b526e65e66693cf1a4ee6f74001793 (diff) |
lua: config: lazy: moving lazy.nvim config as referred in upstream doc
Signed-off-by: Brahmajit Das <listout@listout.xyz>
Diffstat (limited to 'lua/config/lazy.lua')
-rw-r--r-- | lua/config/lazy.lua | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua new file mode 100644 index 0000000..a483913 --- /dev/null +++ b/lua/config/lazy.lua @@ -0,0 +1,29 @@ +-- Bootstrap lazy.nvim +local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" +if not (vim.uv or vim.loop).fs_stat(lazypath) then + local lazyrepo = "https://github.com/folke/lazy.nvim.git" + local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) + if vim.v.shell_error ~= 0 then + vim.api.nvim_echo({ + { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, + { out, "WarningMsg" }, + { "\nPress any key to exit..." }, + }, true, {}) + vim.fn.getchar() + os.exit(1) + end +end +vim.opt.rtp:prepend(lazypath) + +-- Setup lazy.nvim +require("lazy").setup({ + spec = { + -- import your plugins + { import = "plugins" }, + }, + -- Configure any other settings here. See the documentation for more details. + -- colorscheme that will be used when installing plugins. + install = { colorscheme = { "jellybeans-nvim" } }, + -- automatically check for plugin updates + checker = { enabled = false }, +}) |