commit 5d5eca8684b3bc9426674c5a2cdd4359a0ae2336 Author: amolinae06 Date: Thu Jan 2 18:02:01 2025 -0600 first commit diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..0ddb7b1 --- /dev/null +++ b/init.lua @@ -0,0 +1,10 @@ +require("config.lazy") +require("config.settings") + +local neopywal = require("neopywal") +neopywal.setup({ + transparent_background = true, + terminal_colors = true, + show_end_of_buffer = false, +}) +vim.cmd.colorscheme("neopywal") diff --git a/lazy-lock.json b/lazy-lock.json new file mode 100644 index 0000000..a6b1996 --- /dev/null +++ b/lazy-lock.json @@ -0,0 +1,4 @@ +{ + "lazy.nvim": { "branch": "main", "commit": "703be1dda35e142e76e94e7503cf67d6b98a1d35" }, + "neopywal": { "branch": "master", "commit": "2d65d138463bbbe9d824b9bc1048ef1888017da6" } +} diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua new file mode 100644 index 0000000..f5ee74c --- /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/config/settings.lua b/lua/config/settings.lua new file mode 100644 index 0000000..eeb93c8 --- /dev/null +++ b/lua/config/settings.lua @@ -0,0 +1,20 @@ +local global = vim.g +local o = vim.opt + +o.number = true +o.syntax = "on" +o.autoindent = true +o.cursorline = true +o.expandtab = true +o.shiftwidth = 2 +o.tabstop = 2 +o.encoding = "UTF-8" +o.ruler = true +o.hidden = true +o.ttimeoutlen = 0 +o.wildmenu = true +o.showmatch = true +o.inccommand = "split" +o.splitright = true +o.splitbelow = true +o.termguicolors = true diff --git a/lua/plugins/neopywal.lua b/lua/plugins/neopywal.lua new file mode 100644 index 0000000..4785c3c --- /dev/null +++ b/lua/plugins/neopywal.lua @@ -0,0 +1,9 @@ +return { + { + "RedsXDD/neopywal.nvim", + name = "neopywal", + lazy = false, + priority = 1000, + opts = {}, + } +}