mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2025-10-21 20:10:41 +00:00
42 lines
1.3 KiB
Lua
42 lines
1.3 KiB
Lua
return {
|
|
"doctorfree/cheatsheet.nvim",
|
|
event = "VeryLazy",
|
|
dependencies = {
|
|
{ "nvim-telescope/telescope.nvim" },
|
|
{ "nvim-lua/popup.nvim" },
|
|
{ "nvim-lua/plenary.nvim" },
|
|
},
|
|
config = function()
|
|
require("cheatsheet").setup({
|
|
-- Whether to show bundled cheatsheets
|
|
|
|
-- For generic cheatsheets like default, unicode, nerd-fonts, etc
|
|
bundled_cheatsheets = {
|
|
enabled = { "default", "unicode", "regex", "markdown", "lua" },
|
|
disabled = { "nerd-fonts" },
|
|
},
|
|
-- bundled_cheatsheets = true,
|
|
|
|
-- For plugin specific cheatsheets
|
|
bundled_plugin_cheatsheets = {
|
|
enabled = {},
|
|
disabled = {},
|
|
},
|
|
-- bundled_plugin_cheatsheets = true,
|
|
|
|
-- 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,
|
|
},
|
|
})
|
|
end,
|
|
}
|