From 7d759edf68303c7681a6521fbc3675661204cd4f Mon Sep 17 00:00:00 2001 From: Ibrahim Muftee Date: Tue, 24 Jun 2025 11:26:15 -0500 Subject: feat(nvim): replace old config with new one --- dot_config/nvim/lua/ibrahim/lazy_init.lua | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 dot_config/nvim/lua/ibrahim/lazy_init.lua (limited to 'dot_config/nvim/lua/ibrahim/lazy_init.lua') diff --git a/dot_config/nvim/lua/ibrahim/lazy_init.lua b/dot_config/nvim/lua/ibrahim/lazy_init.lua new file mode 100644 index 0000000..4d88957 --- /dev/null +++ b/dot_config/nvim/lua/ibrahim/lazy_init.lua @@ -0,0 +1,34 @@ +-- 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) + +vim.g.mapleader = " " +vim.opt.termguicolors = true + +-- Setup lazy.nvim +require("lazy").setup({ + spec = { + -- import your plugins + { import = "ibrahim.plugins" }, + }, + install = { colorscheme = { "rose-pine" } }, + -- Configure any other settings here. See the documentation for more details. + -- automatically check for plugin updates + checker = { enabled = true }, + change_detection = { + notify = false, + } +}) -- cgit v1.2.3