Refactor
This commit is contained in:
91
lua/plugins/dankcolors.lua
Normal file
91
lua/plugins/dankcolors.lua
Normal file
@@ -0,0 +1,91 @@
|
||||
return {
|
||||
{
|
||||
"RRethy/base16-nvim",
|
||||
priority = 1000,
|
||||
config = function()
|
||||
require('base16-colorscheme').setup({
|
||||
base00 = '#131313',
|
||||
base01 = '#131313',
|
||||
base02 = '#5c6370',
|
||||
base03 = '#5c6370',
|
||||
base04 = '#abb2bf',
|
||||
base05 = '#ffffff',
|
||||
base06 = '#ffffff',
|
||||
base07 = '#ffffff',
|
||||
base08 = '#e05f92',
|
||||
base09 = '#e05f92',
|
||||
base0A = '#ffc29e',
|
||||
base0B = '#abe086',
|
||||
base0C = '#997050',
|
||||
base0D = '#ffc29e',
|
||||
base0E = '#b56254',
|
||||
base0F = '#b56254',
|
||||
})
|
||||
|
||||
vim.api.nvim_set_hl(0, 'Visual', {
|
||||
bg = '#5c6370',
|
||||
fg = '#ffffff',
|
||||
bold = true
|
||||
})
|
||||
vim.api.nvim_set_hl(0, 'Statusline', {
|
||||
bg = '#ffc29e',
|
||||
fg = '#131313',
|
||||
})
|
||||
vim.api.nvim_set_hl(0, 'LineNr', { fg = '#5c6370' })
|
||||
vim.api.nvim_set_hl(0, 'CursorLineNr', { fg = '#997050', bold = true })
|
||||
|
||||
vim.api.nvim_set_hl(0, 'Statement', {
|
||||
fg = '#b56254',
|
||||
bold = true
|
||||
})
|
||||
vim.api.nvim_set_hl(0, 'Keyword', { link = 'Statement' })
|
||||
vim.api.nvim_set_hl(0, 'Repeat', { link = 'Statement' })
|
||||
vim.api.nvim_set_hl(0, 'Conditional', { link = 'Statement' })
|
||||
|
||||
vim.api.nvim_set_hl(0, 'Function', {
|
||||
fg = '#ffc29e',
|
||||
bold = true
|
||||
})
|
||||
vim.api.nvim_set_hl(0, 'Macro', {
|
||||
fg = '#ffc29e',
|
||||
italic = true
|
||||
})
|
||||
vim.api.nvim_set_hl(0, '@function.macro', { link = 'Macro' })
|
||||
|
||||
vim.api.nvim_set_hl(0, 'Type', {
|
||||
fg = '#997050',
|
||||
bold = true,
|
||||
italic = true
|
||||
})
|
||||
vim.api.nvim_set_hl(0, 'Structure', { link = 'Type' })
|
||||
|
||||
vim.api.nvim_set_hl(0, 'String', {
|
||||
fg = '#abe086',
|
||||
italic = true
|
||||
})
|
||||
|
||||
vim.api.nvim_set_hl(0, 'Operator', { fg = '#abb2bf' })
|
||||
vim.api.nvim_set_hl(0, 'Delimiter', { fg = '#abb2bf' })
|
||||
vim.api.nvim_set_hl(0, '@punctuation.bracket', { link = 'Delimiter' })
|
||||
vim.api.nvim_set_hl(0, '@punctuation.delimiter', { link = 'Delimiter' })
|
||||
|
||||
vim.api.nvim_set_hl(0, 'Comment', {
|
||||
fg = '#5c6370',
|
||||
italic = true
|
||||
})
|
||||
|
||||
local current_file_path = vim.fn.stdpath("config") .. "/lua/plugins/dankcolors.lua"
|
||||
if not _G._matugen_theme_watcher then
|
||||
local uv = vim.uv or vim.loop
|
||||
_G._matugen_theme_watcher = uv.new_fs_event()
|
||||
_G._matugen_theme_watcher:start(current_file_path, {}, vim.schedule_wrap(function()
|
||||
local new_spec = dofile(current_file_path)
|
||||
if new_spec and new_spec[1] and new_spec[1].config then
|
||||
new_spec[1].config()
|
||||
print("Theme reload")
|
||||
end
|
||||
end))
|
||||
end
|
||||
end
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user