view vendor/vim-packs/srcery-vim/lua/lualine/themes/srcery.lua @ 727:49538e2aad65 default tip

Add a useful editrc
author nanaya <me@nanaya.net>
date Tue, 24 Sep 2024 16:58:15 +0900
parents 78469331407e
children
line wrap: on
line source

-- 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}
  }
}