Add silent option to a lot of keymaps to hide command display.

This commit is contained in:
Martin Larsson 2024-10-30 17:47:29 +01:00
parent 23ed2e9964
commit 8263b02c70
6 changed files with 26 additions and 7 deletions

View file

@ -33,7 +33,7 @@ return {
},
})
require("utils").add_keymaps({
local keymaps = {
n = {
["<Leader>ci"] = { cmd = "<cmd>CodeCompanion<cr>" },
["<Leader>cc"] = { cmd = "<cmd>CodeCompanionChat toggle<cr>" },
@ -46,7 +46,10 @@ return {
["<Leader>cf"] = { cmd = "<cmd>CodeCompanion /fix<cr>" },
["<Leader>ct"] = { cmd = "<cmd>CodeCompanion /tests<cr>" },
}
})
}
local utils = require("utils")
utils.add_opts_to_all_mappings(keymaps, { silent = true })
utils.add_keymaps(keymaps)
vim.cmd([[cab cc CodeCompanion]])
end