diff vendor/vim-packs/srcery-vim/lua/lualine/themes/srcery.lua @ 726:78469331407e

Update syntaxes
author nanaya <me@nanaya.net>
date Mon, 19 Aug 2024 17:04:13 +0900
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vendor/vim-packs/srcery-vim/lua/lualine/themes/srcery.lua	Mon Aug 19 17:04:13 2024 +0900
@@ -0,0 +1,67 @@
+-- Port of Srcery's airline theme to lualine
+local colors = {
+  black           =   vim.api.nvim_eval('g:srcery_black'),
+  red             =   vim.api.nvim_eval('g:srcery_red'),
+  green           =   vim.api.nvim_eval('g:srcery_green'),
+  yellow          =   vim.api.nvim_eval('g:srcery_yellow'),
+  blue            =   vim.api.nvim_eval('g:srcery_blue'),
+  magenta         =   vim.api.nvim_eval('g:srcery_magenta'),
+  cyan            =   vim.api.nvim_eval('g:srcery_cyan'),
+  white           =   vim.api.nvim_eval('g:srcery_white'),
+  brightblack     =   vim.api.nvim_eval('g:srcery_bright_black'),
+  brightred       =   vim.api.nvim_eval('g:srcery_bright_red'),
+  brightgreen     =   vim.api.nvim_eval('g:srcery_bright_green'),
+  brightyellow    =   vim.api.nvim_eval('g:srcery_bright_yellow'),
+  brightblue      =   vim.api.nvim_eval('g:srcery_bright_blue'),
+  brightmagenta   =   vim.api.nvim_eval('g:srcery_bright_magenta'),
+  brightcyan      =   vim.api.nvim_eval('g:srcery_bright_cyan'),
+  brightwhite     =   vim.api.nvim_eval('g:srcery_bright_white'),
+  -- Srcery's xterm 256 colors
+  orange          =   vim.api.nvim_eval('g:srcery_red'),
+  brightorange    =   vim.api.nvim_eval('g:srcery_red'),
+  hardblack       =   vim.api.nvim_eval('g:srcery_red'),
+  xgray1          =   vim.api.nvim_eval('g:srcery_xgray1'),
+  xgray2          =   vim.api.nvim_eval('g:srcery_xgray2'),
+  xgray3          =   vim.api.nvim_eval('g:srcery_xgray3'),
+  xgray4          =   vim.api.nvim_eval('g:srcery_xgray4'),
+  xgray5          =   vim.api.nvim_eval('g:srcery_xgray5'),
+  xgray6          =   vim.api.nvim_eval('g:srcery_xgray6'),
+}
+
+return {
+  normal = {
+    a = {bg = colors.xgray4, fg = colors.brightwhite, gui = 'bold'},
+    b = {bg = colors.xgray3, fg = colors.brightwhite},
+    c = {bg = colors.xgray1, fg = colors.brightwhite}
+  },
+  insert = {
+    a = {bg = colors.brightwhite, fg = colors.black, gui = 'bold'},
+    b = {bg = colors.brightblack, fg = colors.black},
+    c = {bg = colors.xgray1, fg = colors.brightwhite}
+  },
+  visual = {
+    a = {bg = colors.cyan, fg = colors.black, gui = 'bold'},
+    b = {bg = colors.xgray5, fg = colors.brightwhite},
+    c = {bg = colors.xgray1, fg = colors.brightwhite}
+  },
+  replace = {
+    a = {bg = colors.brightred, fg = colors.brightwhite, gui = 'bold'},
+    b = {bg = colors.brightblack, fg = colors.black},
+    c = {bg = colors.xgray1, fg = colors.brightwhite}
+  },
+  command = {
+    a = {bg = colors.yellow, fg = colors.black, gui = 'bold'},
+    b = {bg = colors.xgray3, fg = colors.brightwhite},
+    c = {bg = colors.xgray1, fg = colors.brightwhite}
+  },
+  terminal = {
+    a = {bg = colors.green, fg = colors.black, gui = 'bold'},
+    b = {bg = colors.xgray3, fg = colors.brightwhite},
+    c = {bg = colors.xgray1, fg = colors.brightwhite}
+  },
+  inactive = {
+    a = {bg = colors.xgray4, fg = colors.xgray6, gui = 'bold'},
+    b = {bg = colors.xgray3, fg = colors.xgray6},
+    c = {bg = colors.xgray2, fg = colors.xgray6}
+  }
+}