From 4c7e7f683d9463439901c2aafc781c91af1573bf Mon Sep 17 00:00:00 2001 From: ray-x Date: Wed, 3 Nov 2021 10:41:46 +1100 Subject: [PATCH] update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 76afe02..27f44a1 100644 --- a/README.md +++ b/README.md @@ -607,14 +607,14 @@ require'navigator'.setup({ ``` ```lua --- output the logs -local log = require"navigator.util".log +-- a example of adding logs in the plugin --- output your log +local log = require"navigator.util".log local definition_hdlr = util.mk_handler(function(err, locations, ctx, _) - log('this is a log for locations', locations, "and ctx", ctx) + -- output your log + log('[definition] log for locations', locations, "and ctx", ctx) if err ~= nil then return end