startup.nvim icon indicating copy to clipboard operation
startup.nvim copied to clipboard

Vertical center?

Open SiddharthShyniben opened this issue 3 years ago • 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

SiddharthShyniben avatar Mar 26 '22 07:03 SiddharthShyniben