From: Frede Braendstrup Date: Wed, 17 Nov 2021 23:40:51 +0000 (+0100) Subject: allow using a custom background for lualine X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=936db36d868309667c155f3aea4a90ccbe4561bd;p=nvim-plugins%2Fflatwhite.git allow using a custom background for lualine --- diff --git a/lua/lualine/themes/dracula-nvim.lua b/lua/lualine/themes/dracula-nvim.lua index 342aeef..8577438 100644 --- a/lua/lualine/themes/dracula-nvim.lua +++ b/lua/lualine/themes/dracula-nvim.lua @@ -2,15 +2,22 @@ local dracula = {} local colors = require('dracula').colors() +local bg = "" +if vim.g.dracula_lualine_bg_color ~= nil then + bg = vim.g.dracula_lualine_bg_color +else + bg = colors.black +end + dracula.normal = { a = {fg = colors.black, bg = colors.purple, gui = 'bold'}, - b = {fg = colors.purple, bg = colors.black}, - c = {fg = colors.white, bg = colors.black} + b = {fg = colors.purple, bg = bg}, + c = {fg = colors.white, bg = bg}, } dracula.visual = { a = {fg = colors.black, bg = colors.pink, gui = 'bold'}, - b = {fg = colors.pink, bg = colors.black}, + b = {fg = colors.pink, bg = bg}, } dracula.inactive = { @@ -20,14 +27,14 @@ dracula.inactive = { dracula.replace = { a = {fg = colors.black, bg = colors.yellow, gui = 'bold'}, - b = {fg = colors.yellow, bg = colors.black}, - c = {fg = colors.white, bg = colors.black} + b = {fg = colors.yellow, bg = bg}, + c = {fg = colors.white, bg = bg}, } dracula.insert = { a = {fg = colors.black, bg = colors.green, gui = 'bold'}, - b = {fg = colors.green, bg = colors.black}, - c = {fg = colors.white, bg = colors.black} + b = {fg = colors.green, bg = bg}, + c = {fg = colors.white, bg = bg}, } return dracula