From 541a857ae04bd595352275c0ec2a33d365834709 Mon Sep 17 00:00:00 2001 From: rieg-ec Date: Mon, 4 Jul 2022 23:09:46 -0400 Subject: [PATCH] add cheatsheet --- nvim/lua/user/plugins/cheatsheet.lua | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 nvim/lua/user/plugins/cheatsheet.lua diff --git a/nvim/lua/user/plugins/cheatsheet.lua b/nvim/lua/user/plugins/cheatsheet.lua new file mode 100644 index 0000000..95dc08a --- /dev/null +++ b/nvim/lua/user/plugins/cheatsheet.lua @@ -0,0 +1,30 @@ +require("cheatsheet").setup({ + -- Whether to show bundled cheatsheets + + -- For generic cheatsheets like default, unicode, nerd-fonts, etc + -- bundled_cheatsheets = { + -- enabled = {}, + -- disabled = {}, + -- }, + bundled_cheatsheets = false, + + -- For plugin specific cheatsheets + -- bundled_plugin_cheatsheets = { + -- enabled = {}, + -- disabled = {}, + -- } + bundled_plugin_cheatsheets = false, + + -- For bundled plugin cheatsheets, do not show a sheet if you + -- don't have the plugin installed (searches runtimepath for + -- same directory name) + include_only_installed_plugins = true, + + -- Key mappings bound inside the telescope window + telescope_mappings = { + [''] = require('cheatsheet.telescope.actions').select_or_fill_commandline, + [''] = require('cheatsheet.telescope.actions').select_or_execute, + [''] = require('cheatsheet.telescope.actions').copy_cheat_value, + [''] = require('cheatsheet.telescope.actions').edit_user_cheatsheet, + } +})