add: validation for whichkey chat

This commit is contained in:
asep.komarudin 2024-06-07 18:42:28 +07:00
parent a51db2cbc7
commit babcd3c9dd

View file

@ -277,7 +277,9 @@ M.mappings = {
},
}
table.insert(M.mappings, { ["c"] = { ":call codeium#Chat()<cr>", "󰭹 Codeium Chat" } })
if vim.g.pcode_codeium then
table.insert(M.mappings, { ["c"] = { ":call codeium#Chat()<cr>", "󰭹 Codeium Chat" } })
end
M.mappings2 = {
["/"] = { "<esc><cmd>lua require('Comment.api').toggle.linewise(vim.fn.visualmode())<cr>", " 󰆈 Commet Block" },