-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neovim statusbar #74
Comments
Hmm, what terminal are you using? And is this neovim inside |
I've tried konsole, gnome terminal and kitty, all of them have the same issue. I'm not using tmux either And ya something with the colourscheme seems off |
Are you by any chance using the This happens to me whenever I exit goyo mode. In order to fix it I have to source Edit: This should do it automatically: function! s:goyo_leave()
source ~/.config/nvim/statusline.vim
endfunction
augroup goyo_statusline_fix
autocmd!
autocmd! User GoyoLeave nested call <SID>goyo_leave()
augroup end |
You're correct as always, sourcing it again fixes it! I'm assuming I have to put the fix into init.vim ? |
I fixed the snippet above, now it works.
Yes. |
Even before you fixed the snippet it actually worked! Thank you Elena :-) |
I am having the same issue with my setup but I don't have goyo plugin installed. By putting in the P.S. I am not exactly sure if it's good Github etiquette to post on a similar but closed issue so let me know if I should open a new one. |
Do you have |
I don't have that in either init.vim or statusline.vim. |
Could you try this and let me know if the statusline looks fine or not? echo 'source ~/.config/nvim/statusline.vim' > /tmp/minimal-config.vim
nvim -u /tmp/minimal-config.vim |
Yep that's working fine, do you know how I can use that in init as well? |
I commented out "colorscheme lena" and it worked (but with the default color scheme instead). Any thoughts on why? Update: I removed |
It could be (?) that the Weirdly enough, it does not happen with my current config, but I could reproduce this with a minimal config. Anyway, thank you for posting the solution. |
I'm having a similar issue again, but I'm running windows 10 with WSL 1 Ubuntu 18.04 It might be related to colourscheme I'm not sure I'm using windows terminal where the colour scheme definition is slightly different than xresources but I've tried my best
|
The colorscheme definition looks good to me.
Sadly I cannot test with Windows terminal, so could you try this and let me know if it works? set term=xterm
set t_Co=16 |
I have a couple other terminals that I can try, but none of them seem to be able to display it properly. In the other terminals I have, hyper, and fluent terminal the mouse supports seems to be not working while in windows terminal it works fine. I'm not sure if the issue is just related to windows but maybe. I'll try and get kitty running some time in the future.
Without the |
I suspect that the Windows terminal does not render the Looking at this screenshot of the dracula theme for Windows terminal (which has different colors for Could you try putting this possible fix in your config? (From microsoft/terminal#832 (comment))
Also let me know how it goes whenever you install |
I've put it into init.vim and now the corners are actually displaying correctly but not the middle |
An update on this, I never got kitty installed but I have tried alacritty and the same issue appears. I'm starting to think windows needs some more special treatment |
Indeed. One possible solution could be to generate a true-color vim colorscheme and use that instead of The only downside would be that if you change the colorscheme of your Windows terminal, the vim colorscheme will not follow, and will need to be regenerated in order to match. If Windows terminal supports true-color, and you are OK with this solution, we could give it a shot. This command can determine if the terminal supports true-color: awk 'BEGIN{
s="/\\/\\/\\/\\/\\"; s=s s s s s s s s;
for (colnum = 0; colnum<77; colnum++) {
r = 255-(colnum*255/76);
g = (colnum*510/76);
b = (colnum*255/76);
if (g>255) g = 510-g;
printf "\033[48;2;%d;%d;%dm", r,g,b;
printf "\033[38;2;%d;%d;%dm", 255-r,255-g,255-b;
printf "%s\033[0m", substr(s,colnum+1,1);
}
printf "\n";
}' If it prints a smooth rainbow gradient like this, then it supports true color: Let me know if you would like me to generate the colorscheme so we can try this. |
Hi again !
Trying to start using neovim as text editor and it seems I've run into an issue.
image
I have copied your nvim config folder and sourced the statusline.vim, as far as I can see that already has lightline disabled so I'm not sure what it is.
Thanks once again ❤️
The text was updated successfully, but these errors were encountered: