From e5fcbf2fe93f87cea277e101f4529c80aeaedcf2 Mon Sep 17 00:00:00 2001 From: José Juan Loeza Sierra Date: Sat, 8 Nov 2025 08:11:08 -0800 Subject: add github theme and new lualine theme the github lualine theme is quite ugly, so I tweaked the default tomorrow_night theme --- dot-config/nvim/lua/my-lualine-theme.lua | 42 ++++++++++++++++++++++++++++++++ dot-config/nvim/nvim-pack-lock.json | 4 +++ dot-config/nvim/plugin/colorscheme.lua | 9 ++++++- dot-config/nvim/plugin/lualine.lua | 3 +++ 4 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 dot-config/nvim/lua/my-lualine-theme.lua diff --git a/dot-config/nvim/lua/my-lualine-theme.lua b/dot-config/nvim/lua/my-lualine-theme.lua new file mode 100644 index 0000000..d2280f5 --- /dev/null +++ b/dot-config/nvim/lua/my-lualine-theme.lua @@ -0,0 +1,42 @@ +-- tweaked colors from lualine default tomorrow_night +local colors = { + bg = "#000000", + alt_bg = "#000000", + dark_fg = "#969896", + fg = "#b4b7b4", + light_fg = "#c5c8c6", + normal = "#81a2be", + insert = "#b5bd68", + visual = "#b294bb", + replace = "#de935f", +} + +local theme = { + normal = { + a = { fg = colors.bg, bg = colors.normal }, + b = { fg = colors.light_fg, bg = colors.alt_bg }, + c = { fg = colors.fg, bg = colors.bg }, + }, + replace = { + a = { fg = colors.bg, bg = colors.replace }, + b = { fg = colors.light_fg, bg = colors.alt_bg }, + }, + insert = { + a = { fg = colors.bg, bg = colors.insert }, + b = { fg = colors.light_fg, bg = colors.alt_bg }, + }, + visual = { + a = { fg = colors.bg, bg = colors.visual }, + b = { fg = colors.light_fg, bg = colors.alt_bg }, + }, + inactive = { + a = { fg = colors.dark_fg, bg = colors.bg }, + b = { fg = colors.dark_fg, bg = colors.bg }, + c = { fg = colors.dark_fg, bg = colors.bg }, + }, +} + +theme.command = theme.normal +theme.terminal = theme.insert + +return theme diff --git a/dot-config/nvim/nvim-pack-lock.json b/dot-config/nvim/nvim-pack-lock.json index cf0d147..f6b4679 100644 --- a/dot-config/nvim/nvim-pack-lock.json +++ b/dot-config/nvim/nvim-pack-lock.json @@ -8,6 +8,10 @@ "rev": "a8458b7", "src": "https://github.com/ibhagwan/fzf-lua" }, + "github-nvim-theme": { + "rev": "c106c94", + "src": "https://github.com/projekt0n/github-nvim-theme" + }, "hardtime.nvim": { "rev": "b4e4319", "src": "https://github.com/m4xshen/hardtime.nvim" diff --git a/dot-config/nvim/plugin/colorscheme.lua b/dot-config/nvim/plugin/colorscheme.lua index 2539956..48ca70b 100644 --- a/dot-config/nvim/plugin/colorscheme.lua +++ b/dot-config/nvim/plugin/colorscheme.lua @@ -1,6 +1,7 @@ vim.pack.add({ "https://github.com/sainnhe/sonokai", "https://github.com/WTFox/jellybeans.nvim", + "https://github.com/projekt0n/github-nvim-theme", }) vim.g.sonokai_transparent_background = 2 @@ -13,4 +14,10 @@ require("jellybeans").setup({ flat_ui = true, -- toggles "flat UI" for pickers }) -vim.cmd("colorscheme jellybeans") +require("github-theme").setup({ + options = { + transparent = true, + }, +}) + +vim.cmd("colorscheme github_dark_high_contrast") diff --git a/dot-config/nvim/plugin/lualine.lua b/dot-config/nvim/plugin/lualine.lua index b605786..79e3805 100644 --- a/dot-config/nvim/plugin/lualine.lua +++ b/dot-config/nvim/plugin/lualine.lua @@ -4,10 +4,13 @@ vim.pack.add({ local wc = require("wordcount") +local theme = require("my-lualine-theme") + require("lualine").setup({ options = { component_separators = "", section_separators = "", + theme = theme, }, sections = { lualine_y = { -- cgit v1.3