From d0585ecf49f8eebc44cac7dae2a686d1ef33e141 Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Sun, 28 Sep 2025 21:16:48 +0200 Subject: feat: replace nvim-cmp with blink.cmp --- lua/pml68/lazy.lua | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'lua/pml68/lazy.lua') diff --git a/lua/pml68/lazy.lua b/lua/pml68/lazy.lua index bf0e87d..32500fa 100644 --- a/lua/pml68/lazy.lua +++ b/lua/pml68/lazy.lua @@ -1,6 +1,6 @@ local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" -if not vim.loop.fs_stat(lazypath) then - vim.fn.system({ +if not (vim.uv or vim.loop).fs_stat(lazypath) then + local out = vim.fn.system({ "git", "clone", "--filter=blob:none", @@ -8,6 +8,15 @@ if not vim.loop.fs_stat(lazypath) then "--branch=stable", -- latest stable release 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) -- cgit v1.2.3