diff options
Diffstat (limited to 'lua/lvim/config')
| -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 | 
