about summary refs log tree commit diff
path: root/.config/nvim/lua/manager.lua
diff options
context:
space:
mode:
authorvenomade <venomade@venomade.com>2025-05-22 20:25:43 +0100
committervenomade <venomade@venomade.com>2025-05-22 20:25:43 +0100
commitedc74a464606b98378e24e27dcd3041b0f7f9162 (patch)
treef8f9acfcb332360906eb2d0ac7f1115d543768e4 /.config/nvim/lua/manager.lua
parentedcf5dd381c26274a939f4e703539b15c0058e99 (diff)
MacOS & Neovim HEAD master
Diffstat (limited to '.config/nvim/lua/manager.lua')
-rw-r--r--.config/nvim/lua/manager.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/.config/nvim/lua/manager.lua b/.config/nvim/lua/manager.lua
new file mode 100644
index 0000000..f533341
--- /dev/null
+++ b/.config/nvim/lua/manager.lua
@@ -0,0 +1,26 @@
+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.g.maplocalleader = "\\"
+
+require("lazy").setup({
+  spec = {
+    { import = "plugins" },
+  },
+  install = { colorscheme = { "habamax" } },
+  checker = { enabled = true },
+})