From e30014d22bf8bf29a5d7a23bbdde407e9dc876c3 Mon Sep 17 00:00:00 2001 From: srdusr Date: Mon, 6 Mar 2023 21:18:36 +0200 Subject: Better description on Conditional q mapping --- lua/user/keys.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/user/keys.lua b/lua/user/keys.lua index 7e2c2c3..689ff13 100644 --- a/lua/user/keys.lua +++ b/lua/user/keys.lua @@ -29,7 +29,7 @@ map("n", "", "luafile ~/.config/nvim/init.lua | :echom ('Nv --------------- Extended Operations --------------- --- Use q to quit on floating windows otherwise still use it for macros +-- Conditional 'q' to quit on floating/quickfix/help windows otherwise still use it for macros map('n', 'q', function() local config = vim.api.nvim_win_get_config(0) if config.relative ~= "" then -- is_floating_window? -- cgit v1.2.3