From babcd3c9dd85c2aca001904ece7c74543385aa9c Mon Sep 17 00:00:00 2001 From: "asep.komarudin" Date: Fri, 7 Jun 2024 18:42:28 +0700 Subject: [PATCH] add: validation for whichkey chat --- lua/user/utils/whichkey.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/user/utils/whichkey.lua b/lua/user/utils/whichkey.lua index 816ca15..80bfaf0 100644 --- a/lua/user/utils/whichkey.lua +++ b/lua/user/utils/whichkey.lua @@ -277,7 +277,9 @@ M.mappings = { }, } -table.insert(M.mappings, { ["c"] = { ":call codeium#Chat()", "󰭹 Codeium Chat" } }) +if vim.g.pcode_codeium then + table.insert(M.mappings, { ["c"] = { ":call codeium#Chat()", "󰭹 Codeium Chat" } }) +end M.mappings2 = { ["/"] = { "lua require('Comment.api').toggle.linewise(vim.fn.visualmode())", " 󰆈 Commet Block" },