summaryrefslogtreecommitdiff
path: root/lua/core/dashboard.lua
diff options
context:
space:
mode:
authorLuc Sinet <[email protected]>2021-08-25 07:47:48 +0200
committerGitHub <[email protected]>2021-08-25 07:47:48 +0200
commit00b895d9e9577f084cf577a07f9d6d6e1f7a4cac (patch)
tree1139617d5b3acd56f221f24ce301f51535267bdc /lua/core/dashboard.lua
parentf6c706ac0c346491cc79bdea46a52ee7a8694e0d (diff)
[Feature] Encapsulate config logic (#1338)
* Define core/builtins, streamline status_color interface * Encapsulate configuration in its own module * Add fallback to lv-config.lua * Rectify settings loading order to allow overriding vim options * Move default-config into config/ module * replace uv.fs_stat with utils.is_file
Diffstat (limited to 'lua/core/dashboard.lua')
-rw-r--r--lua/core/dashboard.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/core/dashboard.lua b/lua/core/dashboard.lua
index c76d55c9..ac6ee013 100644
--- a/lua/core/dashboard.lua
+++ b/lua/core/dashboard.lua
@@ -1,6 +1,6 @@
local M = {}
-M.config = function()
+M.config = function(config)
lvim.builtin.dashboard = {
active = false,
on_config_done = nil,
@@ -47,7 +47,7 @@ M.config = function()
},
e = {
description = { " Configuration " },
- command = ":e " .. USER_CONFIG_PATH,
+ command = ":e " .. config.path,
},
},