From: hylo Date: Sun, 19 Mar 2023 19:35:08 +0000 (+0100) Subject: fix: use correct file name X-Git-Url: https://git.atheridis.org/?a=commitdiff_plain;h=b74cf331538deb2954d8030f1b1a1be4f2d8e85e;p=nvim-plugins%2Fflatwhite.git fix: use correct file name --- diff --git a/lua/lualine/themes/flatwhite.lua b/lua/lualine/themes/flatwhite.lua new file mode 100644 index 0000000..ef200d9 --- /dev/null +++ b/lua/lualine/themes/flatwhite.lua @@ -0,0 +1,47 @@ +local flatwhite = require("flatwhite") +local configs = flatwhite.configs() +local colors = flatwhite.colors() + +local bg = configs.lualine_bg_color or colors.base4 + +local normal = { + a = { fg = colors.base5, bg = colors.base2, gui = "bold" }, + b = { fg = colors.base2, bg = bg }, + c = { fg = colors.fg, bg = bg }, +} + +local command = { + a = { fg = colors.teal_text, bg = colors.teal_bg, gui = "bold" }, + b = { fg = colors.teal_text_sec, bg = bg }, +} + +local visual = { + a = { fg = colors.purple_text, bg = colors.purple_bg, gui = "bold" }, + b = { fg = colors.purple_text_sec, bg = bg }, +} + +local inactive = { + a = { fg = colors.white, bg = colors.visual, gui = "bold" }, + b = { fg = colors.black, bg = colors.white }, +} + +local replace = { + a = { fg = colors.black, bg = colors.yellow, gui = "bold" }, + b = { fg = colors.yellow, bg = bg }, + c = { fg = colors.white, bg = bg }, +} + +local insert = { + a = { fg = colors.green_text, bg = colors.green_bg, gui = "bold" }, + b = { fg = colors.green_text_sec, bg = bg }, + c = { fg = colors.fg, bg = bg }, +} + +return { + normal = normal, + command = command, + visual = visual, + inactive = inactive, + replace = replace, + insert = insert, +} diff --git a/lua/lualine/themes/flatwhite.nvim b/lua/lualine/themes/flatwhite.nvim deleted file mode 100644 index ef200d9..0000000 --- a/lua/lualine/themes/flatwhite.nvim +++ /dev/null @@ -1,47 +0,0 @@ -local flatwhite = require("flatwhite") -local configs = flatwhite.configs() -local colors = flatwhite.colors() - -local bg = configs.lualine_bg_color or colors.base4 - -local normal = { - a = { fg = colors.base5, bg = colors.base2, gui = "bold" }, - b = { fg = colors.base2, bg = bg }, - c = { fg = colors.fg, bg = bg }, -} - -local command = { - a = { fg = colors.teal_text, bg = colors.teal_bg, gui = "bold" }, - b = { fg = colors.teal_text_sec, bg = bg }, -} - -local visual = { - a = { fg = colors.purple_text, bg = colors.purple_bg, gui = "bold" }, - b = { fg = colors.purple_text_sec, bg = bg }, -} - -local inactive = { - a = { fg = colors.white, bg = colors.visual, gui = "bold" }, - b = { fg = colors.black, bg = colors.white }, -} - -local replace = { - a = { fg = colors.black, bg = colors.yellow, gui = "bold" }, - b = { fg = colors.yellow, bg = bg }, - c = { fg = colors.white, bg = bg }, -} - -local insert = { - a = { fg = colors.green_text, bg = colors.green_bg, gui = "bold" }, - b = { fg = colors.green_text_sec, bg = bg }, - c = { fg = colors.fg, bg = bg }, -} - -return { - normal = normal, - command = command, - visual = visual, - inactive = inactive, - replace = replace, - insert = insert, -}