Skip to content
This repository has been archived by the owner on Jul 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #7 from ful1e5/dev
Browse files Browse the repository at this point in the history
🔧 `Statusline` & `NvimTreeEndOfBuffer` color fix
  • Loading branch information
ful1e5 authored Jun 22, 2021
2 parents 38b6370 + e84d1c5 commit d79e497
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- **VertSplit** & **Inactive StatusLine** `fg` color changed to `bg_visual`
- StatusLine bug note inside [README.md#usage](./README.md#-usage)
- Configuration docs updated inside [README.md#configuration](./README.md#-configuration)
- Fix `VertSplit` & `StatusLine` crossover on `hideInactiveStatusline` [check hoob3rt/lualine.nvim#274]
- Change `NvimTreeEndOfBuffer` color on `darkSidebar=false`

## [v0.0.1] - 14 June 2021

Expand Down
30 changes: 25 additions & 5 deletions lua/onedark/theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,11 @@ function M.setup(config)
LspTroubleText = {fg = c.fg_dark},
LspTroubleCount = {fg = c.purple, bg = c.fg_gutter},
LspTroubleNormal = {fg = c.fg_sidebar, bg = c.bg_sidebar},

-- Illuminate
illuminatedWord = {bg = c.fg_gutter},
illuminatedCurWord = {bg = c.fg_gutter},

-- diff
diffAdded = {fg = c.git.add},
diffRemoved = {fg = c.git.delete},
Expand All @@ -254,6 +256,7 @@ function M.setup(config)
diffFile = {fg = c.blue},
diffLine = {fg = c.fg_gutter},
diffIndexLine = {fg = c.purple},

-- Neogit
NeogitBranch = {fg = c.purple},
NeogitRemote = {fg = c.purple},
Expand All @@ -262,19 +265,23 @@ function M.setup(config)
NeogitDiffContextHighlight = {bg = util.darken(c.fg_gutter, 0.5), fg = c.fg_dark},
NeogitDiffDeleteHighlight = {fg = c.git.delete, bg = c.diff.delete},
NeogitDiffAddHighlight = {fg = c.git.add, bg = c.diff.add},

-- GitGutter
GitGutterAdd = {fg = c.gitSigns.add}, -- diff mode: Added line |diff.txt|
GitGutterChange = {fg = c.gitSigns.change}, -- diff mode: Changed line |diff.txt|
GitGutterDelete = {fg = c.gitSigns.delete}, -- diff mode: Deleted line |diff.txt|

-- GitSigns
GitSignsAdd = {fg = c.gitSigns.add}, -- diff mode: Added line |diff.txt|
GitSignsChange = {fg = c.gitSigns.change}, -- diff mode: Changed line |diff.txt|
GitSignsDelete = {fg = c.gitSigns.delete}, -- diff mode: Deleted line |diff.txt|

-- Telescope
TelescopeBorder = {fg = c.border_highlight},

-- NvimTree
NvimTreeNormal = {fg = c.fg_light, bg = c.bg_sidebar},
NvimTreeEndOfBuffer = {fg = c.bg2},
NvimTreeEndOfBuffer = config.darkSidebar and {fg = c.bg2} or {fg = c.bg},
NvimTreeRootFolder = {fg = c.fg_light, style = "bold"},
NvimTreeGitDirty = {fg = c.yellow2},
NvimTreeGitNew = {fg = c.git.add},
Expand All @@ -289,11 +296,13 @@ function M.setup(config)
LspDiagnosticsWarning = {fg = c.warning},
LspDiagnosticsInformation = {fg = c.info},
LspDiagnosticsHint = {fg = c.hint},

-- Dashboard
DashboardShortCut = {fg = c.purple},
DashboardHeader = {fg = c.red},
DashboardCenter = {fg = c.blue},
DashboardFooter = {fg = c.yellow, style = "italic"},

-- WhichKey
WhichKey = {fg = c.yellow},
WhichKeyGroup = {fg = c.blue},
Expand All @@ -302,18 +311,23 @@ function M.setup(config)
WhichKeySeparator = {fg = c.fg_gutter},
WhichKeyFloat = {bg = c.bg_sidebar},
WhichKeyValue = {fg = c.dark5},

-- LspSaga
DiagnosticError = {fg = c.error},
DiagnosticWarning = {fg = c.warning},
DiagnosticInformation = {fg = c.info},
DiagnosticHint = {fg = c.hint},

-- NeoVim
healthError = {fg = c.error},
healthSuccess = {fg = c.green},
healthWarning = {fg = c.warning},

-- BufferLine

BufferLineIndicatorSelected = {fg = c.git.change},
BufferLineFill = {bg = c.black},

-- ALE
ALEWarningSign = {fg = c.yellow},
ALEErrorSign = {fg = c.red}
Expand All @@ -322,12 +336,18 @@ function M.setup(config)
if config.hideInactiveStatusline then
local inactive = {style = "underline", bg = c.bg, fg = c.bg, sp = c.bg_visual}

-- StatusLineNC
-- StatusLine
theme.base.StatusLineNC = inactive

-- LuaLine
for _, section in pairs({"a", "b", "c"}) do
theme.plugins["lualine_" .. section .. "_inactive"] = inactive
if vim.o.statusline ~= nil and string.find(vim.o.statusline, "lualine") then
-- Fix VertSplit & StatusLine crossover when lualine is active
-- https://github.com/hoob3rt/lualine.nvim/issues/274
theme.base.StatusLine = {bg = c.bg}

-- LuaLine
for _, section in pairs({"a", "b", "c"}) do
theme.plugins["lualine_" .. section .. "_inactive"] = inactive
end
end
end

Expand Down

0 comments on commit d79e497

Please sign in to comment.