mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 13:30:41 +00:00
26 lines
554 B
Lua
26 lines
554 B
Lua
|
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,
|
||
|
}
|