65 lines
1.3 KiB
Lua
65 lines
1.3 KiB
Lua
-- Generated by Matugen
|
|
|
|
require('base16-colorscheme').setup({
|
|
base00 = "#0b0e12",
|
|
base01 = "#0b0e12",
|
|
base02 = "#181c20",
|
|
base03 = "#42474e",
|
|
base04 = "#c2c7cf",
|
|
base05 = "#e0e2e8",
|
|
base06 = "#2d3135",
|
|
base07 = "#36393e",
|
|
|
|
base08 = "#c8acdf",
|
|
base09 = "#d4bee6",
|
|
base0A = "#b9c8da",
|
|
base0B = "#9dcbfb",
|
|
base0C = "#504060",
|
|
base0D = "#124a73",
|
|
base0E = "#3a4857",
|
|
base0F = "#98aec8",
|
|
})
|
|
|
|
|
|
-- We first theme base16, but we also need to fix some other colors that don't
|
|
-- contrast well by default
|
|
|
|
-- Helper function to set multiple highlight groups at once
|
|
local function set_hl_mutliple(groups, value)
|
|
for _, v in pairs(groups) do
|
|
vim.api.nvim_set_hl(0, v, value)
|
|
end
|
|
end
|
|
|
|
-- Make selected text stand out more
|
|
vim.api.nvim_set_hl(0, 'Visual', {
|
|
bg = '#124a73',
|
|
fg = '#cfe5ff', -- normal text contrast
|
|
})
|
|
|
|
-- Make "string" text contrast better
|
|
set_hl_mutliple({ 'String', 'TSString' }, {
|
|
fg = '#af87d1',
|
|
})
|
|
|
|
-- Grey out comments
|
|
set_hl_mutliple({ 'TSComment', 'Comment' }, {
|
|
fg = '#8c9199',
|
|
italic = true,
|
|
})
|
|
|
|
-- Color in other highlight groups as you see fit!
|
|
|
|
set_hl_mutliple({ 'TSMethod', 'Method' }, {
|
|
fg = '#d4bee6',
|
|
})
|
|
|
|
|
|
set_hl_mutliple({ 'TSFunction', 'Function' }, {
|
|
fg = '#b9c8da',
|
|
})
|
|
|
|
set_hl_mutliple({ 'Keyword', 'TSKeyword', 'TSKeywordFunction', 'TSRepeat' }, {
|
|
fg = '#31628d',
|
|
})
|