nvimdev / dashboard-nvim

vim dashboard
MIT License
2.36k stars 193 forks source link

dashboard is not centred #11

Closed p00f closed 4 years ago

p00f commented 4 years ago

When using nvim from a terminal (ie open terminal and type nvim) the dashboard is centred properly

But when using from a desktop shortcut nvim.desktop:

Exec=konsole -e nvim
Terminal=false

or a neovim GUI (neovide or goneovim), it is not centred

See video:https://imgur.com/zpZJ6PF

glepnir commented 4 years ago

@PitcherTear22 P Sorry I don't work for gui neovim.

p00f commented 4 years ago

@PitcherTear22 P Sorry I don't work for gui neovim.

It also doesn't work for desktop shortcut of terminal neovim

glepnir commented 4 years ago

I tested it on centos7 with gnome terminal macos kitty alacritty iterm2. works fine.

p00f commented 4 years ago

hmm it is the same on gnome-terminal: https://imgur.com/eRymmMa

p00f commented 4 years ago

to be clear, it is centred when you open the terminal and then type nvim, the problem is only in desktop shortcuts : https://imgur.com/deQ8X5F

glepnir commented 4 years ago

Please test the startify behavior. because the centerd function same as startify.

p00f commented 4 years ago

Yes even vim-startify has this problem

p00f commented 4 years ago

You mean this right: image

glepnir commented 4 years ago

So this is a wired problem. What is the problem with the inability to locate the shortcut. Maybe different terminals behave differently?

p00f commented 4 years ago

but gnome terminal works for you and doesnt for me

glepnir commented 4 years ago

I don't test the shortcut. the normal behavior open terminal then open neovim.

p00f commented 4 years ago

ok

neur1n commented 3 years ago

In my case, the startup page shifts to the right when using neovim-qt. But then using :Dashboard command everything is centered. This does not happen with startify.

p00f commented 3 years ago

This does not happen with startify.

are you using startify centred or to the left?

neur1n commented 3 years ago

This does not happen with startify.

are you using startify centred or to the left?

Both are tested :)

Sorry, my fault. Even Startify is not centered when using startify#center. It seems to be caused by wrong initial columns value. See neovim/neovim#13532.