From 23df368b00bda0ed4a01fac92f7ad80998c1d34a Mon Sep 17 00:00:00 2001 From: kylo252 <59826753+kylo252@users.noreply.github.com> Date: Sat, 21 May 2022 16:48:47 +0200 Subject: refactor: load the default options once (#2592) BREAKING CHANGE: modifying the default options for keymaps and autocmds is now done by overwriting them, since they won't be loaded into the global `lvim` table anymore * refactor: use the lua-commands api * refactor!: use the lua-autocmds api * fix(settings): let neovim handle spellfile * feat: add log:set_log_level() * chore: update examples * chore: add deprecation notice for custom_groups --- lua/lvim/core/alpha/dashboard.lua | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'lua/lvim/core/alpha/dashboard.lua') diff --git a/lua/lvim/core/alpha/dashboard.lua b/lua/lvim/core/alpha/dashboard.lua index 010d8c1a..d65980fb 100644 --- a/lua/lvim/core/alpha/dashboard.lua +++ b/lua/lvim/core/alpha/dashboard.lua @@ -34,16 +34,7 @@ function M.get_sections() } local text = require "lvim.interface.text" - local git_utils = require "lvim.utils.git" - - local current_branch = git_utils.get_lvim_branch() - - local lvim_version - if current_branch ~= "HEAD" or "" then - lvim_version = current_branch .. "-" .. git_utils.get_lvim_current_sha() - else - lvim_version = "v" .. git_utils.get_lvim_tag() - end + local lvim_version = require("lvim.utils.git").get_lvim_version() local footer = { type = "text", @@ -68,7 +59,7 @@ function M.get_sections() { "SPC L c", " Configuration", - "edit " .. require("lvim.config").get_user_config_path() .. " ", + "edit " .. require("lvim.config"):get_user_config_path() .. " ", }, }, } -- cgit v1.2.3