diff options
author | hui.liu <[email protected]> | 2021-07-14 12:45:11 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-14 00:45:11 -0400 |
commit | 64045a40dfb03eb4933d7e229c25e07e9d9aa896 (patch) | |
tree | f7149d4a044d3ac979f33dbbef99571928bb9ca6 | |
parent | 3dfb4184b7c458a328b8adcc6fadeaee6a7ef8dc (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
-rw-r--r-- | lua/core/dashboard.lua | 2 | ||||
-rw-r--r-- | lua/core/which-key.lua | 1 |
2 files changed, 2 insertions, 1 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, 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"] = { "<cmd>lua require'core.nvimtree'.toggle_tree()<CR>", "Explorer" }, ["f"] = { "<cmd>Telescope find_files<CR>", "Find File" }, ["h"] = { '<cmd>let @/=""<CR>', "No Highlight" }, - [";"] = { "<cmd>Dashboard<CR>", "Dashboard" }, p = { name = "Packer", c = { "<cmd>PackerCompile<cr>", "Compile" }, |