max397574/startup.nvim

Vertical center?

SiddharthShyniben opened this issue · 0 comments

Is your feature request related to a problem? Please describe.
NA

Describe the solution you'd like
It would be cool if we could vertically align stuff.

Describe alternatives you've considered
Using a lua function to add some extra text at the top. It works, but it's ugly

content = function()
	local text = vim.fn.system 'fortune'
	local _, lineCount = string.gsub(text, '\n', '')
	local height = math.floor((vim.o.lines / 2) - lineCount)

	local out = text
			
	for i = 1, height, 1 do
		out = ' \n ' .. out
	end

	return split(out .. '\n', '\n')
end,

Additional context
N/A