1
Fork 0

Adjust Neovim colors to also work with light mode

This commit is contained in:
caem 2024-06-06 16:29:46 +02:00
parent dff2ba275a
commit 035d66c186
Signed by: caem
GPG key ID: 69A830D03203405F
4 changed files with 16 additions and 2 deletions

View file

@ -4,7 +4,7 @@ return {
config = function() config = function()
require"gruvbox".setup { require"gruvbox".setup {
transparent_mode = true, transparent_mode = true,
contrast = "soft", contrast = "hard",
} }
vim.cmd("colorscheme gruvbox") vim.cmd("colorscheme gruvbox")
end, end,

View file

@ -82,17 +82,26 @@ return {
ins_l { ins_l {
"filesize", "filesize",
cond = buffer_not_empty, cond = buffer_not_empty,
color = {
fg = rgb_to_hex(hl("Comment").fg),
}
} }
ins_l { ins_l {
"o:encoding", "o:encoding",
cond = buffer_not_empty, cond = buffer_not_empty,
color = {
fg = rgb_to_hex(hl("Comment").fg),
}
} }
ins_l { ins_l {
"fileformat", "fileformat",
icons_enabled = false, icons_enabled = false,
cond = buffer_not_empty, cond = buffer_not_empty,
color = {
fg = rgb_to_hex(hl("Comment").fg),
}
} }
ins_r { "diagnostics" } ins_r { "diagnostics" }
@ -110,6 +119,9 @@ return {
ins_r { ins_r {
"location", "location",
color = {
fg = rgb_to_hex(hl("Comment").fg),
}
} }
ins_r { ins_r {

View file

@ -1,5 +1,5 @@
return function (name) 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 while hl.link ~= nil do
hl = vim.api.nvim_get_hl(0, { name = hl.link }) hl = vim.api.nvim_get_hl(0, { name = hl.link })
end end

View file

@ -4,6 +4,8 @@
programs.neovim = { programs.neovim = {
enable = true; enable = true;
defaultEditor = true; defaultEditor = true;
/* This doesn't work with standalone home-manager */
extraPackages = with pkgs; [ extraPackages = with pkgs; [
lua-language-server lua-language-server
nodePackages.intelephense nodePackages.intelephense