From 1dd4db955bdc8fa038671964cce4f481aa0562a1 Mon Sep 17 00:00:00 2001 From: ful1e5 <24286590+ful1e5@users.noreply.github.com> Date: Sun, 12 Sep 2021 15:54:48 +0530 Subject: [PATCH] fix #66 --- CHANGELOG.md | 1 + lua/github-theme/colors.lua | 8 +++----- lua/github-theme/theme.lua | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e93f2f4..e02ea0ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - refactored `lua/github-theme/config.lua` fixed #29 - telescope.nvim highlights improved - use `bg_visiual` color as floating window border +- use `bg` and `bg2` colors for `EndOfBuffer` `NoneText` fixed #66 ## [v0.0.1] - 9 Jul 2021 diff --git a/lua/github-theme/colors.lua b/lua/github-theme/colors.lua index 704272a7..c5e412a7 100644 --- a/lua/github-theme/colors.lua +++ b/lua/github-theme/colors.lua @@ -141,15 +141,13 @@ function M.setup(config) } - util.bg = colors.bg - colors.bg = config.transparent and colors.none or colors.bg - -- EndOfBuffer colors are configurable colors.sidebar_eob = config.darkSidebar and colors.bg2 or colors.bg colors.sidebar_eob = config.hideEndOfBuffer and colors.sidebar_eob or colors.fg_light - colors.sidebar_eob = config.transparent and colors.fg_light or colors.sidebar_eob colors.eob = config.hideEndOfBuffer and colors.bg or colors.fg_light - colors.eob = config.transparent and colors.fg_light or colors.eob + + util.bg = colors.bg + colors.bg = config.transparent and colors.none or colors.bg colors.fg_search = colors.none colors.border_highlight = colors.blue diff --git a/lua/github-theme/theme.lua b/lua/github-theme/theme.lua index 03d08adf..89434e4b 100644 --- a/lua/github-theme/theme.lua +++ b/lua/github-theme/theme.lua @@ -45,7 +45,7 @@ function M.setup(config) MsgArea = {fg = c.fg, style = config.msgAreaStyle}, -- Area for messages and cmdline -- MsgSeparator= { }, -- Separator for scrolled messages, `msgsep` flag of 'display' MoreMsg = {fg = c.blue}, -- |more-prompt| - NonText = {fg = c.bg}, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|. + NonText = {fg = c.eof}, -- '@' at the end of the window, characters from 'showbreak' and other characters that do not really exist in the text (e.g., ">" displayed when a double-wide character doesn't fit at the end of the line). See also |hl-EndOfBuffer|. Normal = {fg = c.fg, bg = config.transparent and c.none or c.bg}, -- normal text NormalNC = {fg = c.fg, bg = config.transparent and c.none or c.bg}, -- normal text in non-current windows NormalSB = {fg = c.fg, bg = c.bg_sidebar}, -- normal text in non-current windows