From 60f91d41d3d934c9f74cc0ecf9a62ad11958348a Mon Sep 17 00:00:00 2001 From: caem Date: Thu, 6 Jun 2024 20:56:02 +0200 Subject: [PATCH] Revert "Adjust Neovim colors to also work with light mode" This reverts commit 035d66c18688de0128534b810e7ea531784569be. --- .../hu/packages/nvim/config/lua/plugins/gruvbox.lua | 2 +- .../hu/packages/nvim/config/lua/plugins/lualine.lua | 12 ------------ users/hu/packages/nvim/config/lua/util/hl.lua | 2 +- users/hu/packages/nvim/neovim.nix | 2 -- 4 files changed, 2 insertions(+), 16 deletions(-) diff --git a/users/hu/packages/nvim/config/lua/plugins/gruvbox.lua b/users/hu/packages/nvim/config/lua/plugins/gruvbox.lua index a0f3f77..9ca4eb0 100644 --- a/users/hu/packages/nvim/config/lua/plugins/gruvbox.lua +++ b/users/hu/packages/nvim/config/lua/plugins/gruvbox.lua @@ -4,7 +4,7 @@ return { config = function() require"gruvbox".setup { transparent_mode = true, - contrast = "hard", + contrast = "soft", } vim.cmd("colorscheme gruvbox") end, diff --git a/users/hu/packages/nvim/config/lua/plugins/lualine.lua b/users/hu/packages/nvim/config/lua/plugins/lualine.lua index 5dbb3cd..400c759 100644 --- a/users/hu/packages/nvim/config/lua/plugins/lualine.lua +++ b/users/hu/packages/nvim/config/lua/plugins/lualine.lua @@ -82,26 +82,17 @@ return { ins_l { "filesize", cond = buffer_not_empty, - color = { - fg = rgb_to_hex(hl("Comment").fg), - } } ins_l { "o:encoding", cond = buffer_not_empty, - color = { - fg = rgb_to_hex(hl("Comment").fg), - } } ins_l { "fileformat", icons_enabled = false, cond = buffer_not_empty, - color = { - fg = rgb_to_hex(hl("Comment").fg), - } } ins_r { "diagnostics" } @@ -119,9 +110,6 @@ return { ins_r { "location", - color = { - fg = rgb_to_hex(hl("Comment").fg), - } } ins_r { diff --git a/users/hu/packages/nvim/config/lua/util/hl.lua b/users/hu/packages/nvim/config/lua/util/hl.lua index 0dcbe49..d7c95c1 100644 --- a/users/hu/packages/nvim/config/lua/util/hl.lua +++ b/users/hu/packages/nvim/config/lua/util/hl.lua @@ -1,5 +1,5 @@ return function (name) - local hl = vim.api.nvim_get_hl(0, { name = name }) + local hl = vim.api.nvim_get_hl(0, { name = name }) while hl.link ~= nil do hl = vim.api.nvim_get_hl(0, { name = hl.link }) end diff --git a/users/hu/packages/nvim/neovim.nix b/users/hu/packages/nvim/neovim.nix index 81e8766..4b84c16 100644 --- a/users/hu/packages/nvim/neovim.nix +++ b/users/hu/packages/nvim/neovim.nix @@ -4,8 +4,6 @@ programs.neovim = { enable = true; defaultEditor = true; - - /* This doesn't work with standalone home-manager */ extraPackages = with pkgs; [ lua-language-server nodePackages.intelephense