Skip to content

Commit

Permalink
Only warn once about conceallevel
Browse files Browse the repository at this point in the history
See #617.
  • Loading branch information
epwalsh committed Jun 4, 2024
1 parent 216e5e8 commit b8ca513
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/obsidian/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ M.setup = function(workspace, ui_opts)
local conceallevel = vim.opt_local.conceallevel:get()

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

0 comments on commit b8ca513

Please sign in to comment.