60 lines
2.0 KiB
Lua
60 lines
2.0 KiB
Lua
local M = {}
|
|
|
|
function M.setup()
|
|
require('base16-colorscheme').setup({
|
|
base00 = '#101418',
|
|
base01 = '#1c2025',
|
|
base02 = '#272a2f',
|
|
base03 = '#8a919c',
|
|
base04 = '#c0c7d3',
|
|
base05 = '#e0e2e9',
|
|
base06 = '#e0e2e9',
|
|
base07 = '#e0e2e9',
|
|
base08 = '#ffb4ab',
|
|
base09 = '#ecb2ff',
|
|
base0A = '#adc9ec',
|
|
base0B = '#9dcaff',
|
|
base0C = '#ecb2ff',
|
|
base0D = '#9dcaff',
|
|
base0E = '#adc9ec',
|
|
base0F = '#d1e4ff',
|
|
})
|
|
|
|
local hi = function(group, opts)
|
|
vim.api.nvim_set_hl(0, group, opts)
|
|
end
|
|
|
|
hi('TelescopeNormal', { fg = '#e0e2e9', bg = '#101418' })
|
|
hi('TelescopeBorder', { fg = '#8a919c', bg = '#101418' })
|
|
hi('TelescopePromptNormal', { fg = '#e0e2e9', bg = '#101418' })
|
|
hi('TelescopePromptBorder', { fg = '#8a919c', bg = '#101418' })
|
|
hi('TelescopePromptPrefix', { fg = '#9dcaff', bg = '#101418' })
|
|
hi('TelescopePromptCounter', { fg = '#c0c7d3', bg = '#101418' })
|
|
hi('TelescopePromptTitle', { fg = '#101418', bg = '#9dcaff' })
|
|
hi('TelescopePreviewTitle', { fg = '#101418', bg = '#adc9ec' })
|
|
hi('TelescopeResultsTitle', { fg = '#101418', bg = '#ecb2ff' })
|
|
hi('TelescopeSelection', { fg = '#e0e2e9', bg = '#272a2f' })
|
|
hi('TelescopeSelectionCaret', { fg = '#9dcaff', bg = '#272a2f' })
|
|
hi('TelescopeMatching', { fg = '#9dcaff', bold = true })
|
|
end
|
|
|
|
-- Register a signal handler for SIGUSR1 (matugen updates).
|
|
-- The handler re-requires this module, which re-runs the code below, so the
|
|
-- previous handle is stopped first; otherwise handlers double on every signal.
|
|
if _G.__matugen_signal then
|
|
_G.__matugen_signal:stop()
|
|
_G.__matugen_signal:close()
|
|
end
|
|
|
|
local signal = vim.uv.new_signal()
|
|
_G.__matugen_signal = signal
|
|
signal:start(
|
|
'sigusr1',
|
|
vim.schedule_wrap(function()
|
|
package.loaded['matugen'] = nil
|
|
require('matugen').setup()
|
|
end)
|
|
)
|
|
|
|
return M
|