Skip to content

Commit

Permalink
fix: temporary fix for #163
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbuhr committed Jul 16, 2024
1 parent 0765951 commit fe68b41
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lua/otter/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ M.activate = function(languages, completion, diagnostics, tsquery)
end
languages = found_languages
if #languages == 0 then
if config.cfg.verbose and config.cfg.verbose.no_code_found then
vim.notify_once("[otter] No code chunks found. Not activating. You can activate after having added code chunks with require'otter'.activate(). You can turn of this message by setting the option verbose.no_code_found to false", vim.log.levels.INFO, {})
end
-- just return quietly until
-- TODO: config handling is more robust
-- if config.cfg.verbose and config.cfg.verbose.no_code_found then
-- vim.notify_once("[otter] No code chunks found. Not activating. You can activate after having added code chunks with require'otter'.activate(). You can turn of this message by setting the option verbose.no_code_found to false", vim.log.levels.INFO, {})
-- end
return
end

Expand Down

0 comments on commit fe68b41

Please sign in to comment.