1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

use builtin log level enum to specify log level (#393)

This commit is contained in:
jdhao 2025-03-30 21:00:21 +02:00 committed by GitHub
parent bfc531656a
commit d17289cd6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 7 deletions

View File

@ -69,12 +69,6 @@ M.rand_colorscheme = function()
-- Load the colorscheme and its settings
M.colorscheme_conf[colorscheme]()
if vim.g.logging_level == "debug" then
local msg = "Colorscheme: " .. colorscheme
vim.notify(msg, vim.log.levels.DEBUG, { title = "nvim-config" })
end
end
return M

View File

@ -10,7 +10,7 @@ vim.g.is_win = (utils.has("win32") or utils.has("win64")) and true or false
vim.g.is_linux = (utils.has("unix") and (not utils.has("macunix"))) and true or false
vim.g.is_mac = utils.has("macunix") and true or false
vim.g.logging_level = "info"
vim.g.logging_level = vim.log.levels.INFO
------------------------------------------------------------------------
-- builtin variables --