From 2bd1d0bdf7b31b4b43e8d01847e0ed97d912a351 Mon Sep 17 00:00:00 2001 From: tsindt Date: Mon, 9 Mar 2026 19:52:00 +0100 Subject: [PATCH] colorscheme --- init.lua | 1 + lazy-lock.json | 6 ++++++ lua/config/lazy.lua | 25 +++++++++++++++++++++++++ lua/core/options.lua | 5 +++++ lua/plugins/colors.lua | 24 ++++++++++++++++++++++++ 5 files changed, 61 insertions(+) create mode 100644 lazy-lock.json create mode 100644 lua/config/lazy.lua create mode 100644 lua/plugins/colors.lua diff --git a/init.lua b/init.lua index da64645..eff633c 100644 --- a/init.lua +++ b/init.lua @@ -2,6 +2,7 @@ -- require("core.options") require("core.keymaps") +require("config.lazy") vim.opt.mouse = "a" diff --git a/lazy-lock.json b/lazy-lock.json new file mode 100644 index 0000000..26b791c --- /dev/null +++ b/lazy-lock.json @@ -0,0 +1,6 @@ +{ + "lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" }, + "lualine.nvim": { "branch": "master", "commit": "47f91c416daef12db467145e16bed5bbfe00add8" }, + "nightfox.nvim": { "branch": "main", "commit": "ba47d4b4c5ec308718641ba7402c143836f35aa9" }, + "nvim-web-devicons": { "branch": "master", "commit": "737cf6c657898d0c697311d79d361288a1343d50" } +} diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua new file mode 100644 index 0000000..86484d9 --- /dev/null +++ b/lua/config/lazy.lua @@ -0,0 +1,25 @@ +-- 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) + +-- Setup lazy.nvim +require("lazy").setup({ + spec = { + -- import your plugins + { import = "plugins" }, + }, + change_detection = { notify = false }, +}) diff --git a/lua/core/options.lua b/lua/core/options.lua index 480a700..64a727e 100644 --- a/lua/core/options.lua +++ b/lua/core/options.lua @@ -16,3 +16,8 @@ vim.opt.splitbelow = true vim.opt.updatetime = 200 vim.opt.timeoutlen = 400 +vim.opt.tabstop=4 +vim.opt.softtabstop=4 +vim.opt.autoindent=true +vim.opt.smartindent=true + diff --git a/lua/plugins/colors.lua b/lua/plugins/colors.lua new file mode 100644 index 0000000..d83b92f --- /dev/null +++ b/lua/plugins/colors.lua @@ -0,0 +1,24 @@ +local function enable_transparency() + vim.api.nvim_set_hl(0, "Normal", {bg = "none" }) +end + + +return { + { + "EdenEast/nightfox.nvim", + config = function() + vim.cmd.colorscheme "Dawnfox" +-- enable_transparency() + end + }, + { + "nvim-lualine/lualine.nvim", + dependencies = { + "nvim-tree/nvim-web-devicons", + }, + opts = { + theme = 'tokyonight' + }, + }, +} +