diff options
author | kylo252 <[email protected]> | 2022-03-19 20:02:45 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2022-03-19 20:02:45 +0100 |
commit | c946ddda812c5c2d217061a9016eb8001970d659 (patch) | |
tree | eec7964b135a160244f5ef919f28658c4a988237 /lua/lvim/config/init.lua | |
parent | 7192b28a24d52b62029c414db46b9fd3a5de475e (diff) |
feat: add alpha.nvim integration (#1906)
Diffstat (limited to 'lua/lvim/config/init.lua')
-rw-r--r-- | lua/lvim/config/init.lua | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/lua/lvim/config/init.lua b/lua/lvim/config/init.lua index de06aa89..c3fe0438 100644 --- a/lua/lvim/config/init.lua +++ b/lua/lvim/config/init.lua @@ -40,20 +40,33 @@ function M:init() local lvim_lsp_config = require "lvim.lsp.config" lvim.lsp = apply_defaults(lvim.lsp, vim.deepcopy(lvim_lsp_config)) + ---@deprecated replaced with lvim.builtin.alpha + lvim.builtin.dashboard = { + active = false, + on_config_done = nil, + search_handler = "", + disable_at_vim_enter = 0, + session_directory = "", + custom_header = {}, + custom_section = {}, + footer = {}, + } + require("lvim.lsp.manager").init_defaults() end local function handle_deprecated_settings() - local function deprecation_notice(setting) + local function deprecation_notice(setting, msg) local in_headless = #vim.api.nvim_list_uis() == 0 if in_headless then return end - local msg = string.format( - "Deprecation notice: [%s] setting is no longer supported. See https://github.com/LunarVim/LunarVim#breaking-changes", - setting - ) + msg = msg + or string.format( + "Deprecation notice: [%s] setting is no longer supported. See https://github.com/LunarVim/LunarVim#breaking-changes", + setting + ) vim.schedule(function() Log:warn(msg) end) @@ -71,6 +84,14 @@ local function handle_deprecated_settings() if vim.tbl_contains(vim.tbl_keys(lvim.lsp), "popup_border") then deprecation_notice "lvim.lsp.popup_border" end + + -- dashboard.nvim + if lvim.builtin.dashboard.active then + deprecation_notice( + "dashboard", + "Deprecation notice: `lvim.builtin.dashboard` has been replaced with `lvim.builtin.alpha`. See LunarVim#1906" + ) + end end --- Override the configuration with a user provided one |