From 7c602e62bcd335443e9b081d712c4a6bbd941cd4 Mon Sep 17 00:00:00 2001 From: venus Date: Mon, 9 Mar 2026 23:30:00 -0500 Subject: [PATCH] added noctalia theme sync --- init.lua | 52 ++++++++++++++++++++++------------------ lazy-lock.json | 1 + lua/matugen-template.lua | 37 ++++++++++++++++++++++++++++ lua/matugen.lua | 37 ++++++++++++++++++++++++++++ 4 files changed, 104 insertions(+), 23 deletions(-) create mode 100644 lua/matugen-template.lua create mode 100644 lua/matugen.lua diff --git a/init.lua b/init.lua index 50ab5e9..0b1db28 100644 --- a/init.lua +++ b/init.lua @@ -2,40 +2,40 @@ -- init.lua -- render options, keybinds, lazy and treesitter -- processed first - +-- -- render options require('options') -- render keybinds require('keybinds') --- render lazt +-- bootstrao lazy.nvim require("config.lazy") --- Bootstrap lazy.nvim -- lazy.nvim settings require("lazy").setup({ spec = { -- import your plugins { import = "plugins" }, { - 'soywod/iris.vim', -- unsure - 'tpope/vim-commentary', -- commenting lines with shortcut - -- 'vimpostor/vim-tpipeline', -- integrate with tmux status-line - 'kshenoy/vim-signature', -- tag lines - 'mg979/vim-visual-multi', -- work on multiple lines at once - 'obsidian-nvim/obsidian.nvim', -- work with obsidian - 'nvim-tree/nvim-web-devicons', -- nerdfont! - 'nvim-lualine/lualine.nvim', -- lualine - 'TamaMcGlinn/vim-termhere', --simple terminal QOL - "smjonas/inc-rename.nvim", - 'basola21/PDFview', - "rktjmp/lush.nvim", -- better theme editing - 'vyfor/cord.nvim', --discord rich presence - 'RRethy/base16-nvim', - {'NMAC427/guess-indent.nvim', config = function() require('guess-indent').setup {} end,}, -- Detect tabstop and shiftwidth automatically - { 'edluffy/hologram.nvim', auto_display = true,}, --image viewer - { "denialofsandwich/sudo.nvim", dependencies = { "MunifTanjim/nui.nvim", },config = true, }, --write restricted files without restart - {'akinsho/toggleterm.nvim', version = "*", config = true}, -- terminal toggling and commands - { 'nvim-java/nvim-java', config = function() require('java').setup() vim.lsp.enable('jdtls') end, }, - { "catppuccin/nvim", name = "catppuccin", priority = 1000 }, + 'soywod/iris.vim', -- unsure + 'tpope/vim-commentary', -- commenting lines with shortcut + 'vimpostor/vim-tpipeline', -- integrate with tmux status-line + 'kshenoy/vim-signature', -- tag lines + 'mg979/vim-visual-multi', -- work on multiple lines at once + 'obsidian-nvim/obsidian.nvim', -- work with obsidian + 'nvim-tree/nvim-web-devicons', -- nerdfont! + 'nvim-lualine/lualine.nvim', -- lualine + 'TamaMcGlinn/vim-termhere', --simple terminal QOL + "smjonas/inc-rename.nvim", + 'basola21/PDFview', + "rktjmp/lush.nvim", -- better theme editing + 'vyfor/cord.nvim', --discord rich presence + 'RRethy/base16-nvim', + {'NMAC427/guess-indent.nvim', config = function() require('guess-indent').setup {} end,}, -- Detect tabstop and shiftwidth automatically + { 'edluffy/hologram.nvim', auto_display = true,}, --image viewer + { "denialofsandwich/sudo.nvim", dependencies = { "MunifTanjim/nui.nvim", },config = true, }, --write restricted files without restart + {'akinsho/toggleterm.nvim', version = "*", config = true}, -- terminal toggling and commands + { 'nvim-java/nvim-java', config = function() require('java').setup() vim.lsp.enable('jdtls') end, }, + { "catppuccin/nvim", name = "catppuccin", priority = 1000 }, + { 'RRethy/base16-nvim', config = function() require('matugen').setup() end,}, }, }, -- Configure any other settings here. See the documentation for more details. @@ -44,3 +44,9 @@ require("lazy").setup({ -- automatically check for plugin updates checker = { enabled = true }, }) +-- sync nvim colorscheme with noctalia +local theme_ok, matugen = pcall(require, "matugen") +if theme_ok then + matugen.setup() +end + diff --git a/lazy-lock.json b/lazy-lock.json index 77220c4..4396cda 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -47,6 +47,7 @@ "vim-commentary": { "branch": "master", "commit": "64a654ef4a20db1727938338310209b6a63f60c9" }, "vim-signature": { "branch": "master", "commit": "6bc3dd1294a22e897f0dcf8dd72b85f350e306bc" }, "vim-termhere": { "branch": "main", "commit": "b66d429dd48b74802f09fd059bc499c253372a1c" }, + "vim-tpipeline": { "branch": "master", "commit": "bc6dfc10e26a8dd1ec2f0512050a8a0afaa9d090" }, "vim-visual-multi": { "branch": "master", "commit": "a6975e7c1ee157615bbc80fc25e4392f71c344d4" }, "which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" } } diff --git a/lua/matugen-template.lua b/lua/matugen-template.lua new file mode 100644 index 0000000..d102810 --- /dev/null +++ b/lua/matugen-template.lua @@ -0,0 +1,37 @@ + local M = {} + + function M.setup() + require('base16-colorscheme').setup { + -- Background tones + base00 = '{{colors.surface.default.hex}}', -- Default Background + base01 = '{{colors.surface_container.default.hex}}', -- Lighter Background (status bars) + base02 = '{{colors.surface_container_high.default.hex}}', -- Selection Background + base03 = '{{colors.outline.default.hex}}', -- Comments, Invisibles + -- Foreground tones + base04 = '{{colors.on_surface_variant.default.hex}}', -- Dark Foreground (status bars) + base05 = '{{colors.on_surface.default.hex}}', -- Default Foreground + base06 = '{{colors.on_surface.default.hex}}', -- Light Foreground + base07 = '{{colors.on_background.default.hex}}', -- Lightest Foreground + -- Accent colors + base08 = '{{colors.error.default.hex}}', -- Variables, XML Tags, Errors + base09 = '{{colors.tertiary.default.hex}}', -- Integers, Constants + base0A = '{{colors.secondary.default.hex}}', -- Classes, Search Background + base0B = '{{colors.primary.default.hex}}', -- Strings, Diff Inserted + base0C = '{{colors.tertiary_fixed_dim.default.hex}}', -- Regex, Escape Chars + base0D = '{{colors.primary_fixed_dim.default.hex}}', -- Functions, Methods + base0E = '{{colors.secondary_fixed_dim.default.hex}}', -- Keywords, Storage + base0F = '{{colors.error_container.default.hex}}', -- Deprecated, Embedded Tags + } + end + + -- Register a signal handler for SIGUSR1 (matugen updates) + local signal = vim.uv.new_signal() + signal:start( + 'sigusr1', + vim.schedule_wrap(function() + package.loaded['matugen'] = nil + require('matugen').setup() + end) + ) + + return M diff --git a/lua/matugen.lua b/lua/matugen.lua new file mode 100644 index 0000000..e4e90b5 --- /dev/null +++ b/lua/matugen.lua @@ -0,0 +1,37 @@ + local M = {} + + function M.setup() + require('base16-colorscheme').setup { + -- Background tones + base00 = '#291414', -- Default Background + base01 = '#452121', -- Lighter Background (status bars) + base02 = '#3e1e1e', -- Selection Background + base03 = '#756161', -- Comments, Invisibles + -- Foreground tones + base04 = '#b6afaf', -- Dark Foreground (status bars) + base05 = '#f3f2f2', -- Default Foreground + base06 = '#f3f2f2', -- Light Foreground + base07 = '#f3f2f2', -- Lightest Foreground + -- Accent colors + base08 = '#fd4663', -- Variables, XML Tags, Errors + base09 = '#cccc66', -- Integers, Constants + base0A = '#d6995c', -- Classes, Search Background + base0B = '#e46767', -- Strings, Diff Inserted + base0C = '#e9e996', -- Regex, Escape Chars + base0D = '#ec9393', -- Functions, Methods + base0E = '#e9bf96', -- Keywords, Storage + base0F = '#900017', -- Deprecated, Embedded Tags + } + end + + -- Register a signal handler for SIGUSR1 (matugen updates) + local signal = vim.uv.new_signal() + signal:start( + 'sigusr1', + vim.schedule_wrap(function() + package.loaded['matugen'] = nil + require('matugen').setup() + end) + ) + + return M