diff options
| author | venomade <venomade@venomade.com> | 2026-01-18 16:07:54 +0000 |
|---|---|---|
| committer | venomade <venomade@venomade.com> | 2026-01-18 16:07:54 +0000 |
| commit | 8d688d1107c46b6dfdcaf02fa5c9c4c8a4640e65 (patch) | |
| tree | 76edfeb78094eb8491b1f32a2acd45b6ba95ffa2 /.config/nvim/lua/manager.lua | |
| parent | edcf5dd381c26274a939f4e703539b15c0058e99 (diff) | |
KDE & Emacs
Diffstat (limited to '.config/nvim/lua/manager.lua')
| -rw-r--r-- | .config/nvim/lua/manager.lua | 26 |
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..da5a221 --- /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, notify = false }, +}) |
