Skip to content

Commit

Permalink
add cheatsheet
Browse files Browse the repository at this point in the history
  • Loading branch information
rieg-ec committed Jul 5, 2022
1 parent 8cb24aa commit 541a857
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions nvim/lua/user/plugins/cheatsheet.lua
Original file line number Diff line number Diff line change
@@ -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 = {
['<CR>'] = require('cheatsheet.telescope.actions').select_or_fill_commandline,
['<A-CR>'] = require('cheatsheet.telescope.actions').select_or_execute,
['<C-Y>'] = require('cheatsheet.telescope.actions').copy_cheat_value,
['<C-E>'] = require('cheatsheet.telescope.actions').edit_user_cheatsheet,
}
})

0 comments on commit 541a857

Please sign in to comment.