From fb8154582cafa9bcfd435cf8019b66b6397f4ce6 Mon Sep 17 00:00:00 2001 From: anguye21 <39169301+anguye21@users.noreply.github.com> Date: Sat, 2 Jan 2021 17:35:36 +0000 Subject: [PATCH] Added dracula theme (#12) * Added dracula theme * Converted from 4 spaces to 2 --- README.md | 1 + lua/lualine/themes/dracula.lua | 109 +++++++++++++++++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 lua/lualine/themes/dracula.lua diff --git a/README.md b/README.md index bbb49d2..75a7f31 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ lualine.theme = 'gruvbox' Available themes * gruvbox +* dracula Please create a pr if you managed to port a popular theme before me diff --git a/lua/lualine/themes/dracula.lua b/lua/lualine/themes/dracula.lua new file mode 100644 index 0000000..8754fb2 --- /dev/null +++ b/lua/lualine/themes/dracula.lua @@ -0,0 +1,109 @@ +local M = { } + +local Colors = { + grey = "#44475a", + lightGrey = "#5f6a8e", + orange = "#ffb86c", + purple = "#bd93f9", + red = "#ff5555", + yellow = "#f1fa8c", + green = "#50fa7b", + + white = "#f8f8f2", + black = "#282a36", +} + +M.normal = { + a = { + bg = Colors.purple, + fg = Colors.black, + }, + b = { + bg = Colors.lightGrey, + fg = Colors.white, + }, + c = { + bg = Colors.grey, + fg = Colors.white, + } +} + +M.insert = { + a = { + bg = Colors.green, + fg = Colors.black, + }, + b = { + bg = Colors.lightGrey, + fg = Colors.white, + }, + c = { + bg = Colors.grey, + fg = Colors.white, + } +} + + +M.visual = { + a = { + bg = Colors.yellow, + fg = Colors.black, + }, + b = { + bg = Colors.lightGrey, + fg = Colors.white, + }, + c = { + bg = Colors.grey, + fg = Colors.white, + }, +} + +M.replace = { + a = { + bg = Colors.red, + fg = Colors.black, + }, + b = { + bg = Colors.lightGrey, + fg = Colors.white, + }, + c = { + bg = Colors.grey, + fg = Colors.white, + }, +} + +M.command = { + a = { + bg = Colors.grey, + fg = Colors.white, + }, + b = { + bg = Colors.lightGrey, + fg = Colors.white, + }, + c = { + bg = Colors.purple, + fg = Colors.white + }, +} + +M.terminal = M.normal + +M.inactive = { + a = { + bg = Colors.white, + fg = Colors.purple, + }, + b = { + bg = Colors.grey, + fg = Colors.purple, + }, + c = { + bg = Colors.purple, + fg = Colors.purple, + }, +} + +return M