feat: use our own colorscheme, decouple from tokyonight (#3378)

Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
This commit is contained in:
Christian Chiarulli 2022-11-04 12:57:24 -04:00 committed by GitHub
parent e10a8cca56
commit 5ba80b10cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 18 additions and 22 deletions

View file

@ -1,7 +1,7 @@
return {
leader = "space",
reload_config_on_save = true,
colorscheme = "tokyonight",
colorscheme = "lunar",
transparent_window = false,
format_on_save = {
---@usage pattern string pattern used for the autocommand (Default: '*')

View file

@ -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 = {

View file

@ -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 = {

View file

@ -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)

View file

@ -17,6 +17,9 @@ local core_plugins = {
{
"folke/tokyonight.nvim",
},
{
"lunarvim/lunar.nvim",
},
{ "Tastyep/structlog.nvim" },
{ "nvim-lua/popup.nvim" },

View file

@ -38,6 +38,9 @@
"lualine.nvim": {
"commit": "3325d5d"
},
"lunar.nvim": {
"commit": "29eedf7"
},
"mason-lspconfig.nvim": {
"commit": "a910b4d"
},

View file

@ -11,7 +11,7 @@ an executable
-- general
lvim.log.level = "warn"
lvim.format_on_save = false
lvim.colorscheme = "tokyonight"
lvim.colorscheme = "lunar"
-- to disable icons and use a minimalist setup, uncomment the following
-- lvim.use_icons = false

View file

@ -28,7 +28,7 @@ vim.g.clipboard = {
-- general
lvim.log.level = "warn"
lvim.format_on_save = true
lvim.colorscheme = "tokyonight"
lvim.colorscheme = "lunar"
-- to disable icons and use a minimalist setup, uncomment the following
-- lvim.use_icons = false