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:
parent
bfc531656a
commit
d17289cd6b
@ -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
|
||||
|
||||
@ -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 --
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user