aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/lsp/log.lua
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/lua/vim/lsp/log.lua')
-rw-r--r--runtime/lua/vim/lsp/log.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/log.lua b/runtime/lua/vim/lsp/log.lua
index 6d2e0bc292..00433474fe 100644
--- a/runtime/lua/vim/lsp/log.lua
+++ b/runtime/lua/vim/lsp/log.lua
@@ -91,7 +91,9 @@ do
--
-- Recommended usage:
-- ```
- -- local _ = log.warn() and log.warn("123")
+ -- if log.warn() then
+ -- log.warn("123")
+ -- end
-- ```
--
-- This way you can avoid string allocations if the log level isn't high enough.