-
Notifications
You must be signed in to change notification settings - Fork 524
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
Question: how to change line number color #286
Comments
You can do this with onedark#extend_highlight. As a starting point, put the following in your configuration before augroup colorextend
autocmd!
autocmd ColorScheme * call onedark#extend_highlight("LineNr", { "fg": { "gui": "#CCCCCC" } })
autocmd ColorScheme * call onedark#extend_highlight("CursorLineNr", { "fg": { "gui": "#FF8888" } })
augroup END Depending on your configuration, you may need to add I hope this helps, and thank you for using onedark.vim! |
Awesome thank you, it's way better now! Clarifying One DetailIf I understand correct |
|
Ah, I was testing this with Neovim but you're using Vim 8.2, and the behavior is of The following workaround from that Stack Exchange page made things work for me as expected in standard Vim 8.2 (add it right before the if !has('nvim')
set cursorline
set cursorlineopt=number
endif |
You're welcome, I'm glad we figured it out in the end! |
Hey. If I do this, it all works within my own Terminal window. But, as soon as I switch to a tmux(v 2.7) session, I lose any and all colouring within Vim. I have to disable setting Also, when I execute the code to check 24-bit colour support, it is displayed in red. Naturally, I want to have both the general colouring and the adjusted line number colouring here. Any ideas? Cheers. p.s. I'm working inside a Docker container as well but I doubt that matters. |
If you run If not, what happens if you add |
I did Adding I also read this which in one particular answer states:
However, the command I typed above seems to fix it. Thanks for helping out. Especially so expedited. :] |
Question
I love darkone color scheme, thank you! The only thing is, I use line numbers extensively and they are hardly to distinguish from the background. I'd assume it would be easy to change that but did not find the answer nor in the README neither in the past issues. I found something related on stack overflow, but that did not do. Could pls help to change the color of line numbers?
Terminal Emulator Info
iTerm2 Build 3.4.9
Output From
vim --version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Aug 15 2021 13:04:41)
macOS version - x86_64
Included patches: 1-3350
Compiled by Homebrew
The text was updated successfully, but these errors were encountered: