From 6ea44bff682f2c36868457216f13d9ddab54aaa9 Mon Sep 17 00:00:00 2001 From: hedy Date: Sat, 18 Nov 2023 22:08:52 +0800 Subject: [PATCH] fix(show_help): Indicate when keymap is disabled --- lua/outline/docs.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua/outline/docs.lua b/lua/outline/docs.lua index a93d5d5..7a53100 100644 --- a/lua/outline/docs.lua +++ b/lua/outline/docs.lua @@ -26,6 +26,14 @@ function M.show_help() to = #keys + #indent, name = key_hl, }) + elseif next(keys) == nil then + table.insert(left, '(none)') + table.insert(hl, { + line = #left + 3, + from = #indent, + to = #indent + 6, + name = 'Comment', + }) else local i = #indent table.insert(left, table.concat(keys, ' / '))