Closed sQVe closed 2 weeks ago
@super-jacob As far as I can tell #21 only fixes https://github.com/supermaven-inc/supermaven-nvim/issues/3.
This issue is asking for a config option to completely silence the "Supermaven Pro is running" messages. I try to keep my setup as minimal as possible, and the message just adds noise while providing little value.
EDIT: Also, ❤️ for working on these issues in such a timely manner. I'm loving Supermaven so far.
@sQVe @super-jacob
I think that the best way to approach this would be like other plugins does this kind of things.
Create a logger that if the config passes debug = true
, logs out to the neovim cmdline, otherwise logs out to a file on the plugin folder like ./logs/supermaven-nvim.log
.
Then we use a function like this for example:
-- logger file
function Logger:log(level, debug, msg)
if not debug then
-- write to file
return
end
-- write to file
-- vim.notify("[supermaven-nvim] " .. level .. ": msg, vim.log.levels[level], { title = "Supermaven" })
end
function Logger:log_fmt(level, debug, msg, ...)
if not debug then
-- write to file
return
end
-- write to file
-- vim.notify("[supermaven-nvim] " .. level .. ": msg, vim.log.levels[level], { title = "Supermaven" })
end
-- print("Supermaven " .. tier .. " is running")
Logger.log_fmt("INFO", debug, "Supermaven %s is running", tier)
PLUGINS EXAMPLES
I don't know anymore from the top of my head 😥
@sQVe I added the option and the information on how to use, making use of a logging system.
Hey,
I would appreciate it if there was an option to silence the
Supermaven Pro is running
message. It's just noisy and doesn't really provide any value for me.Cheers!