summaryrefslogtreecommitdiff
path: root/dot-config/nvim
diff options
context:
space:
mode:
authorJosé Juan Loeza Sierra <jj@xz6ze.com>2025-11-08 08:11:08 -0800
committerJosé Juan Loeza Sierra <jj@xz6ze.com>2025-11-08 08:11:08 -0800
commite5fcbf2fe93f87cea277e101f4529c80aeaedcf2 (patch)
tree1f0f425f3466d295eadb0ee1d209dedd70b83317 /dot-config/nvim
parent3e32ab3574e5fbb7707c33a1843558e0b2915a0c (diff)
add github theme and new lualine theme
the github lualine theme is quite ugly, so I tweaked the default tomorrow_night theme
Diffstat (limited to 'dot-config/nvim')
-rw-r--r--dot-config/nvim/lua/my-lualine-theme.lua42
-rw-r--r--dot-config/nvim/nvim-pack-lock.json4
-rw-r--r--dot-config/nvim/plugin/colorscheme.lua9
-rw-r--r--dot-config/nvim/plugin/lualine.lua3
4 files changed, 57 insertions, 1 deletions
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 = {