Skip to content

Commit bf9bb85

Browse files
committed
Don't emit any user-facing messages via vim.notify.
For users not using nvim-notify (for whatever reason), the log level isn't respected in the sense that no filtering is done by default, so even debug messages will *synchronously* interrupt users from typing or moving around Lean files.
1 parent 5cc20fc commit bf9bb85

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/lean/widgets.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
local Element = require('lean.tui').Element
1414
local dedent = require('lean._util').dedent
15+
local log = require 'lean.log'
1516

1617
---@alias WidgetRenderer fun(self: Widget, props: any, uri: string): Element[]?
1718

@@ -44,7 +45,7 @@ function Widget.unsupported(id)
4445
If you think it could be, please file an issue at
4546
https://github.com/Julian/lean.nvim/issues/new/?title=%s
4647
]]
47-
vim.notify_once(msg:format(id, title), vim.log.levels.DEBUG)
48+
log:debug { message = msg:format(id, title), id = id }
4849
end,
4950
}
5051
end

0 commit comments

Comments
 (0)