summaryrefslogtreecommitdiff
path: root/lua/lvim/core
diff options
context:
space:
mode:
authorChristian Chiarulli <[email protected]>2022-11-04 12:57:24 -0400
committerGitHub <[email protected]>2022-11-04 12:57:24 -0400
commit5ba80b10cf5b413d993435432d8c43a83511ce30 (patch)
treeb316b50127be0620497bbad597f900a570e5d3b7 /lua/lvim/core
parente10a8cca56e19692cf89498811bc89393fdb68e1 (diff)
feat: use our own colorscheme, decouple from tokyonight (#3378)
Co-authored-by: kylo252 <[email protected]>
Diffstat (limited to 'lua/lvim/core')
-rw-r--r--lua/lvim/core/alpha/dashboard.lua2
-rw-r--r--lua/lvim/core/lualine/components.lua20
-rw-r--r--lua/lvim/core/theme.lua6
3 files changed, 9 insertions, 19 deletions
diff --git a/lua/lvim/core/alpha/dashboard.lua b/lua/lvim/core/alpha/dashboard.lua
index 5e73206f..e6e1fb5a 100644
--- a/lua/lvim/core/alpha/dashboard.lua
+++ b/lua/lvim/core/alpha/dashboard.lua
@@ -108,7 +108,7 @@ function M.get_sections()
if status_ok then
local function button(sc, txt, keybind, keybind_opts)
local b = dashboard.button(sc, txt, keybind, keybind_opts)
- b.opts.hl_shortcut = "Macro"
+ b.opts.hl_shortcut = "Include"
return b
end
buttons = {
diff --git a/lua/lvim/core/lualine/components.lua b/lua/lvim/core/lualine/components.lua
index 455ee09a..4f3781ec 100644
--- a/lua/lvim/core/lualine/components.lua
+++ b/lua/lvim/core/lualine/components.lua
@@ -12,23 +12,9 @@ local function diff_source()
end
end
-local cursorline_hl = vim.api.nvim_get_hl_by_name("CursorLine", true)
-
-local location_color = nil
-local branch = lvim.icons.git.Branch
-local separator = lvim.icons.ui.LineMiddle
-
-if lvim.colorscheme == "tokyonight" then
- location_color = "SLBranchName"
- branch = "%#SLGitIcon#" .. lvim.icons.git.Branch .. "%*" .. "%#SLBranchName#"
-
- local status_ok, tnc = pcall(require, "tokyonight.colors")
- if status_ok then
- local tncolors = tnc.setup { transform = true }
- vim.api.nvim_set_hl(0, "SLSeparator", { fg = cursorline_hl.background, bg = tncolors.black })
- separator = "%#SLSeparator#" .. lvim.icons.ui.LineMiddle .. "%*"
- end
-end
+local location_color = "SLBranchName"
+local branch = "%#SLGitIcon#" .. lvim.icons.git.Branch .. "%*" .. "%#SLBranchName#"
+local separator = "%#SLSeparator#" .. lvim.icons.ui.LineMiddle .. "%*"
return {
mode = {
diff --git a/lua/lvim/core/theme.lua b/lua/lvim/core/theme.lua
index 04186b0b..2b06363b 100644
--- a/lua/lvim/core/theme.lua
+++ b/lua/lvim/core/theme.lua
@@ -4,7 +4,11 @@ local M = {}
M.config = function()
lvim.builtin.theme = {
- name = "tokyonight",
+ name = "lunar",
+ lunar = {
+ options = { -- currently unused
+ },
+ },
tokyonight = {
options = {
on_highlights = function(hl, c)