add mapping cheatsheet (#244)

This commit is contained in:
siduck76 2021-08-16 22:18:08 +05:30
parent eaaefc236d
commit c62e94923a
4 changed files with 54 additions and 1 deletions

25
lua/plugins/chadsheet.lua Normal file
View file

@ -0,0 +1,25 @@
local present, chadsheet = pcall(require, "cheatsheet")
if not present then
return
end
local mappings = require("chadrc").mappings
-- add user mappings to the cheetsheet
for section, data in pairs(mappings) do
for description, keymap in pairs(data) do
chadsheet.add_cheat(description, keymap, section)
end
end
require("cheatsheet").setup {
bundled_cheatsheets = {
enabled = { "default" },
disabled = { "unicode", "nerd-fonts" },
},
bundled_plugin_cheatsheets = false,
include_only_installed_plugins = true,
}