From d47990e7f19fc2a527971de6c51b2a36cd6a1915 Mon Sep 17 00:00:00 2001 From: skullbite Date: Wed, 5 Mar 2025 15:10:46 -0500 Subject: [PATCH] init --- init.lua | 6 ++++++ lazy-lock.json | 8 ++++++++ lua/config/catppuccin.lua | 3 +++ lua/config/lazy.lua | 35 +++++++++++++++++++++++++++++++++++ lua/plugins/init.lua | 19 +++++++++++++++++++ 5 files changed, 71 insertions(+) create mode 100644 init.lua create mode 100644 lazy-lock.json create mode 100644 lua/config/catppuccin.lua create mode 100644 lua/config/lazy.lua create mode 100644 lua/plugins/init.lua diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..01e5b94 --- /dev/null +++ b/init.lua @@ -0,0 +1,6 @@ +require("config.lazy") +require("lazy").setup("plugins") + +require("config.catppuccin") + +vim.cmd.colorscheme "catppuccin" diff --git a/lazy-lock.json b/lazy-lock.json new file mode 100644 index 0000000..b9fa223 --- /dev/null +++ b/lazy-lock.json @@ -0,0 +1,8 @@ +{ + "catppuccin": { "branch": "main", "commit": "5b5e3aef9ad7af84f463d17b5479f06b87d5c429" }, + "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, + "neo-tree.nvim": { "branch": "v3.x", "commit": "16854ed5559b940f69a6f7138906ebb22c15c553" }, + "nui.nvim": { "branch": "main", "commit": "53e907ffe5eedebdca1cd503b00aa8692068ca46" }, + "nvim-web-devicons": { "branch": "master", "commit": "ab4cfee554e501f497bce0856788d43cf2eb93d7" }, + "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" } +} diff --git a/lua/config/catppuccin.lua b/lua/config/catppuccin.lua new file mode 100644 index 0000000..082eed3 --- /dev/null +++ b/lua/config/catppuccin.lua @@ -0,0 +1,3 @@ +require("catppuccin").setup({ + transparent_background = true +}) diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua new file mode 100644 index 0000000..e52a62b --- /dev/null +++ b/lua/config/lazy.lua @@ -0,0 +1,35 @@ +-- 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) + + -- Make sure to setup `mapleader` and `maplocalleader` before + -- loading lazy.nvim so that mappings are correct. + -- This is also a good place to setup other settings (vim.opt) + vim.g.mapleader = " " + vim.g.maplocalleader = "\\" + + -- Setup lazy.nvim + require("lazy").setup({ + spec = { + -- import your plugins + { import = "plugins" }, + }, + -- Configure any other settings here. See the documentation for more details. + -- colorscheme that will be used when installing plugins. + install = { colorscheme = { "habamax" } }, + -- automatically check for plugin updates + checker = { enabled = true }, + }) diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua new file mode 100644 index 0000000..e27a66d --- /dev/null +++ b/lua/plugins/init.lua @@ -0,0 +1,19 @@ +return { + { + "nvim-neo-tree/neo-tree.nvim", + branch = "v3.x", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended + "MunifTanjim/nui.nvim", + -- {"3rd/image.nvim", opts = {}}, -- Optional image support in preview window: See `# Preview Mode` for more information + + } + }, + { + "catppuccin/nvim", + name = "catppuccin", + priority = 1000 + + } +}