1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 13:32:50 -05:00
Files
DankMaterialShell/quickshell/matugen/templates/neovim.lua

52 lines
1.9 KiB
Lua

return {
{
"RRethy/base16-nvim",
priority = 1000,
config = function()
require('base16-colorscheme').setup({
base00 = '{{colors.background.default.hex}}',
base01 = '{{colors.surface_container.default.hex}}',
base02 = '{{colors.surface_container_highest.default.hex}}',
base03 = '{{colors.outline_variant.default.hex}}',
base04 = '{{colors.on_surface_variant.default.hex}}',
base05 = '{{colors.on_surface.default.hex}}',
base06 = '{{colors.on_surface.default.hex}}',
base07 = '{{colors.inverse_on_surface.default.hex}}',
base08 = '{{colors.error.default.hex}}',
base09 = '{{colors.tertiary.default.hex}}',
base0A = '{{colors.on_surface_variant.default.hex}}',
base0B = '{{colors.primary.default.hex}}',
base0C = '{{colors.secondary.default.hex}}',
base0D = '{{colors.primary.default.hex}}',
base0E = '{{colors.secondary.default.hex}}',
base0F = '{{colors.error.default.hex}}',
})
local function set_hl_mutliple(groups, value)
for _, v in pairs(groups) do vim.api.nvim_set_hl(0, v, value) end
end
vim.api.nvim_set_hl(0, 'Visual',
{ bg = '{{colors.primary_container.default.hex}}', fg = '{{colors.on_primary_container.default.hex}}', bold = true })
vim.api.nvim_set_hl(0, 'LineNr', { fg = '{{colors.outline_variant.default.hex}}' })
vim.api.nvim_set_hl(0, 'CursorLineNr', { fg = '{{colors.primary.default.hex}}', bold = 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("󰂖 Matugen: Colors reloaded!")
end
end))
end
end
}
}