From 64045a40dfb03eb4933d7e229c25e07e9d9aa896 Mon Sep 17 00:00:00 2001 From: "hui.liu" Date: Wed, 14 Jul 2021 12:45:11 +0800 Subject: Fix dashboard which key still appears when dashboard disabled (#923) * Fix dashboard which key still appears when dashboard disabled * Prevent override user_which_key --- lua/core/dashboard.lua | 2 ++ lua/core/which-key.lua | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'lua') 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[";"] = { "Dashboard", "Dashboard" } + -- f = { -- description = { " Neovim Config Files" }, -- command = "Telescope find_files cwd=" .. CONFIG_PATH, diff --git a/lua/core/which-key.lua b/lua/core/which-key.lua index c3255705..b6413775 100644 --- a/lua/core/which-key.lua +++ b/lua/core/which-key.lua @@ -68,7 +68,6 @@ M.config = function() ["e"] = { "lua require'core.nvimtree'.toggle_tree()", "Explorer" }, ["f"] = { "Telescope find_files", "Find File" }, ["h"] = { 'let @/=""', "No Highlight" }, - [";"] = { "Dashboard", "Dashboard" }, p = { name = "Packer", c = { "PackerCompile", "Compile" }, -- cgit v1.2.3