summaryrefslogtreecommitdiff
path: root/lua/core/dashboard.lua
diff options
context:
space:
mode:
authorhui.liu <[email protected]>2021-07-14 12:45:11 +0800
committerGitHub <[email protected]>2021-07-14 00:45:11 -0400
commit64045a40dfb03eb4933d7e229c25e07e9d9aa896 (patch)
treef7149d4a044d3ac979f33dbbef99571928bb9ca6 /lua/core/dashboard.lua
parent3dfb4184b7c458a328b8adcc6fadeaee6a7ef8dc (diff)
Fix dashboard which key still appears when dashboard disabled (#923)
* Fix dashboard which key still appears when dashboard disabled * Prevent override user_which_key
Diffstat (limited to 'lua/core/dashboard.lua')
-rw-r--r--lua/core/dashboard.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/core/dashboard.lua b/lua/core/dashboard.lua
index e58b6f06..9d161e7b 100644
--- a/lua/core/dashboard.lua
+++ b/lua/core/dashboard.lua
@@ -60,6 +60,8 @@ M.setup = function()
vim.g.dashboard_custom_section = O.plugin.dashboard.custom_section
+ O.plugin.which_key.mappings[";"] = { "<cmd>Dashboard<CR>", "Dashboard" }
+
-- f = {
-- description = { " Neovim Config Files" },
-- command = "Telescope find_files cwd=" .. CONFIG_PATH,