From 256ae482d8fecb5424b4cc43d5a97e14dd97ca87 Mon Sep 17 00:00:00 2001 From: siduck Date: Fri, 6 Jan 2023 23:23:28 +0530 Subject: [PATCH] add lazy.nvim hl groups --- lua/base46/init.lua | 2 +- lua/base46/integrations/defaults.lua | 37 ++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/lua/base46/init.lua b/lua/base46/init.lua index fa607fc..f3805ab 100644 --- a/lua/base46/init.lua +++ b/lua/base46/init.lua @@ -118,7 +118,7 @@ end M.compile = function() -- All integration modules, each file returns a table - local hl_files = vim.fn.stdpath "data" .. "/site/pack/packer/opt/base46/lua/base46/integrations" + local hl_files = vim.fn.stdpath "data" .. "/lazy/base46/lua/base46/integrations" for _, file in ipairs(vim.fn.readdir(hl_files)) do local filename = vim.fn.fnamemodify(file, ":r") diff --git a/lua/base46/integrations/defaults.lua b/lua/base46/integrations/defaults.lua index 183329c..574c0d7 100644 --- a/lua/base46/integrations/defaults.lua +++ b/lua/base46/integrations/defaults.lua @@ -1,6 +1,8 @@ local colors = require("base46").get_theme_tb "base_30" local theme = require("base46").get_theme_tb "base_16" +local generate_color = require("base46.colors").change_hex_lightness + return { MatchWord = { bg = colors.grey, @@ -210,4 +212,39 @@ return { bg = colors.green, fg = colors.black, }, + + -- lazy.nvim + LazyH1 = { + bg = colors.green, + fg = colors.black, + }, + + LazyButton = { + bg = colors.one_bg, + fg = generate_color(colors.light_grey, vim.o.bg == "dark" and 10 or -20), + }, + + LazyH2 = { + bg = colors.one_bg2, + fg = colors.orange, + }, + LazyReasonPlugin = { fg = colors.red }, + LazyValue = { fg = colors.red }, + LazyDir = { fg = theme.base05 }, + LazyUrl = { fg = theme.base05 }, + LazyCommit = { fg = colors.green }, + LazyNoCond = { fg = colors.red }, + LazySpecial = { fg = colors.blue }, + LazyReasonFt = { fg = colors.purple }, + LazyOperator = { fg = colors.white }, + LazyReasonKeys = { fg = colors.teal }, + LazyTaskOutput = { fg = colors.white }, + LazyCommitIssue = { fg = colors.pink }, + LazyReasonEvent = { fg = colors.yellow }, + LazyReasonStart = { fg = colors.white }, + LazyReasonRuntime = { fg = colors.nord_blue }, + LazyReasonCmd = { fg = colors.sun }, + LazyReasonSource = { fg = colors.cyan }, + LazyReasonImport = { fg = colors.white }, + LazyProgressDone = { fg = colors.green }, }