Skip to content

Commit 6e337f1

Browse files
committed
feat: small notify styling updates
1 parent fb103ac commit 6e337f1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lua/cyberdream/cache.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ M.build = function(theme)
4040

4141
-- Write the sanitized theme to cache
4242
cache:write(vim.json.encode(sanitized_theme))
43-
util.notify("Cache file written to " .. theme_cache_file)
43+
util.notify("Cache file written to **" .. theme_cache_file .. "**")
4444
end
4545

4646
M.load_options = function(theme)
@@ -74,7 +74,7 @@ M.load = function()
7474
if not cache then
7575
M.build(require("cyberdream.theme").setup())
7676
local notify = vim.defer_fn(function()
77-
util.notify(" Building cache...\n A restart may be required for changes to take effect.")
77+
util.notify("Building cache...\nA restart _may_ be required for changes to take effect.")
7878
M.load()
7979
end, 1000)
8080
return notify
@@ -89,7 +89,7 @@ M.load = function()
8989
if not vim.deep_equal(theme.config, sanitize_config(config.options)) then
9090
M.build(require("cyberdream.theme").setup())
9191
local notify = vim.defer_fn(function()
92-
util.notify(" Building cache...\n A restart may be required for changes to take effect.")
92+
util.notify("Building cache...\nA restart _may_ be required for changes to take effect.")
9393
M.load()
9494
end, 1000)
9595
return notify

lua/cyberdream/util.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ local M = {}
1010
--- @param title? string
1111
function M.notify(message, level, title)
1212
level = level or "info"
13-
title = title or " cyberdream.nvim"
13+
title = title or "cyberdream.nvim"
1414
local level_int = level == "info" and 2 or level == "warn" and 3 or 4
1515

1616
vim.notify(message, level_int, { title = title })

0 commit comments

Comments
 (0)