Made dashboard plugin work with lua plugins
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
@@ -3,11 +3,10 @@ if not staus then
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local stats = require("lazy").stats()
|
||||||
local version = vim.version().major .. "." .. vim.version().minor .. "." .. vim.version().patch
|
local version = vim.version().major .. "." .. vim.version().minor .. "." .. vim.version().patch
|
||||||
local dataPath = vim.fn.stdpath("data")
|
local plugins_count = stats.count
|
||||||
local startDir = vim.fn.globpath(dataPath .. "\\site\\pack\\packer\\start", "*", 0, 1)
|
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
|
||||||
local optDir = vim.fn.globpath(dataPath .. "\\site\\pack\\packer\\opt", "*", 0, 1)
|
|
||||||
local plugins_count = vim.fn.len(startDir) + vim.fn.len(optDir)
|
|
||||||
local time = vim.fn.strftime("%H:%M:%S")
|
local time = vim.fn.strftime("%H:%M:%S")
|
||||||
local date = vim.fn.strftime("%d.%m.%Y")
|
local date = vim.fn.strftime("%d.%m.%Y")
|
||||||
|
|
||||||
@@ -77,7 +76,7 @@ db.setup({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
footer = {
|
footer = {
|
||||||
" " .. version .. " " .. plugins_count .. ' plugins ' .. date .. ' ' .. time,
|
" " .. version .. " " .. plugins_count .. ' plugins in ' .. ms .. 'ms ' .. date .. ' ' .. time,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user