From 221fe79747bc9e2ffb9e2019d72b822eec2577dd Mon Sep 17 00:00:00 2001 From: srdusr Date: Sat, 4 Mar 2023 07:46:28 +0200 Subject: Add help to conditional 'q' mapping --- lua/user/keys.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lua/user/keys.lua') diff --git a/lua/user/keys.lua b/lua/user/keys.lua index 9999138..e918594 100644 --- a/lua/user/keys.lua +++ b/lua/user/keys.lua @@ -37,6 +37,9 @@ map('n', 'q', function() elseif vim.o.buftype == 'quickfix' then return ":close" + elseif + vim.o.buftype == 'help' then + return ":close" else return "q" end -- cgit v1.2.3