fix(logger): remove config

This commit is contained in:
Barrett Ruth 2025-09-22 16:48:46 -04:00
parent d7f5112841
commit beda8a3a03
2 changed files with 1 additions and 8 deletions

View file

@ -1,14 +1,8 @@
local M = {}
local config = nil
function M.set_config(user_config)
config = user_config
end
function M.log(msg, level, override)
level = level or vim.log.levels.INFO
if not config or config.debug or level >= vim.log.levels.WARN or override then
if level >= vim.log.levels.WARN or override then
vim.notify(('[cp.nvim]: %s'):format(msg), level)
end
end