summaryrefslogtreecommitdiff
path: root/lua/config/lazy.lua
diff options
context:
space:
mode:
authormhsn <mail@mhsn.net>2025-01-22 00:44:19 +0000
committermhsn <mail@mhsn.net>2025-01-22 00:44:19 +0000
commitdc17ab2fb051efceafddc3b97ebe9f67c775e9b7 (patch)
treeb9c65af3f8d64f1bd5f48488afd69f2596ab4dec /lua/config/lazy.lua
parentc0ee49298161bccb75b9e23ed64fe80aacec2fd4 (diff)
downloadnvim-dc17ab2fb051efceafddc3b97ebe9f67c775e9b7.tar.gz
nvim-dc17ab2fb051efceafddc3b97ebe9f67c775e9b7.zip
split plugins into separate files and other changes
Diffstat (limited to 'lua/config/lazy.lua')
-rw-r--r--lua/config/lazy.lua19
1 files changed, 8 insertions, 11 deletions
diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua
index 7e90925..07420fd 100644
--- a/lua/config/lazy.lua
+++ b/lua/config/lazy.lua
@@ -1,17 +1,14 @@
-- 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
+ local out = vim.fn.system({
+ "git",
+ "clone",
+ "https://github.com/folke/lazy.nvim.git",
+ "--filter=blob:none",
+ "--branch=stable",
+ lazypath,
+ })
end
vim.opt.rtp:prepend(lazypath)