forked from norcalli/nvim-base16.lua
-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
61 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
local theme = require("nvconfig").ui.statusline.theme | ||
local stl = require("nvconfig").ui.statusline | ||
|
||
if theme == "custom" then | ||
if not stl.enabled then | ||
return {} | ||
end | ||
|
||
local theme_module = "base46.integrations.statusline." .. theme | ||
local theme_module = "base46.integrations.statusline." .. stl.theme | ||
return require(theme_module) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,18 @@ | ||
local config = require("nvconfig") | ||
local config = require "nvconfig" | ||
local get_theme_tb = require("base46").get_theme_tb | ||
local theme_type = get_theme_tb "type" | ||
local colors = get_theme_tb "base_30" | ||
local generate_color = require("base46.colors").change_hex_lightness | ||
local lighten = require("base46.colors").change_hex_lightness | ||
|
||
local statusline_bg = (config.ui.transparency or config.base46.transparency) and "NONE" or colors.statusline_bg | ||
local light_grey = generate_color(colors.light_grey, 8) | ||
local statusline_bg = config.base46.transparency and "NONE" or lighten(colors.statusline_bg, 1) | ||
local light_grey = lighten(colors.light_grey, 8) | ||
|
||
if theme_type == "light" then | ||
light_grey = generate_color(colors.light_grey, -15) | ||
light_grey = lighten(colors.light_grey, -15) | ||
end | ||
|
||
local M = { | ||
StatusLine = { | ||
fg = light_grey, | ||
bg = statusline_bg, | ||
}, | ||
|
||
St_Mode = { | ||
fg = light_grey, | ||
bg = colors.one_bg2, | ||
}, | ||
|
||
StText = { | ||
fg = light_grey, | ||
bg = statusline_bg, | ||
}, | ||
return { | ||
StatusLine = { fg = light_grey, bg = statusline_bg }, | ||
St_Mode = { fg = light_grey, bg = colors.one_bg2 }, | ||
StText = { fg = light_grey, bg = statusline_bg }, | ||
} | ||
|
||
return M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters