Skip to content

Commit b8ca513

Browse files
committed
Only warn once about conceallevel
See #617.
1 parent 216e5e8 commit b8ca513

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/obsidian/ui.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ M.setup = function(workspace, ui_opts)
626626
local conceallevel = vim.opt_local.conceallevel:get()
627627

628628
if conceallevel < 1 or conceallevel > 2 then
629-
log.warn(
629+
log.warn_once(
630630
"Obsidian additional syntax features require 'conceallevel' to be set to 1 or 2, "
631631
.. "but you have 'conceallevel' set to '%s'.\n"
632632
.. "See https://github.com/epwalsh/obsidian.nvim/issues/286 for more details.\n"

0 commit comments

Comments
 (0)