summaryrefslogtreecommitdiff
path: root/lua/lvim/core/dashboard.lua
diff options
context:
space:
mode:
authorkylo252 <[email protected]>2021-11-18 16:04:34 +0100
committerGitHub <[email protected]>2021-11-18 16:04:34 +0100
commitc26ac5364f2bb04b7428105db39c12c6549d5dfb (patch)
treea434959e1f41e7fda51b066927eee8d2645dc221 /lua/lvim/core/dashboard.lua
parent16fd37c8bf5d9f352ea16ad18d3ca327977e205a (diff)
refactor: load the default keymaps once (#1965)
Diffstat (limited to 'lua/lvim/core/dashboard.lua')
-rw-r--r--lua/lvim/core/dashboard.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/lua/lvim/core/dashboard.lua b/lua/lvim/core/dashboard.lua
index 11053796..22e5c9b6 100644
--- a/lua/lvim/core/dashboard.lua
+++ b/lua/lvim/core/dashboard.lua
@@ -58,6 +58,7 @@ M.config = function(config)
footer = { "lunarvim.org" },
}
+ lvim.builtin.which_key.mappings[";"] = { "<cmd>Dashboard<CR>", "Dashboard" }
end
M.setup = function()
@@ -69,8 +70,6 @@ M.setup = function()
vim.g.dashboard_custom_section = lvim.builtin.dashboard.custom_section
- lvim.builtin.which_key.mappings[";"] = { "<cmd>Dashboard<CR>", "Dashboard" }
-
vim.g.dashboard_session_directory = lvim.builtin.dashboard.session_directory
local lvim_site = "lunarvim.org"