mhartington / oceanic-next

Oceanic Next theme for neovim
Other
1.14k stars 141 forks source link

Q: It is possible to change the background color? #53

Closed felixsanz closed 7 years ago

felixsanz commented 7 years ago

Warning: I will close the issue without the minimal vimrc and the reproduce ways.

Problems summary

No problems, just want to change the background color.

Expected

Background color changed with my own custom value

Environment Information

Provide a minimal vim rc with less than 50 lines (Required!)

" Your minimal init.vim
" Theme
syntax enable

if (has("termguicolors"))
set termguicolors
endif

colorscheme OceanicNext

The reproduce ways from neovim starting

  1. Open nvim

Screen shot (if possible)

Left, desired color. Right, the color i'm getting color

mhartington commented 7 years ago

The screenshot on the right is the correct color. If you want something else, feel free to make your own theme.

felixsanz commented 7 years ago

I never said it was the wrong color. In fact, i said it is the right color. Why are you so rude man? Bad day? Bad week? Bad year?

mhartington commented 7 years ago

Not being rude, just timely. You're asking to change the background color of your vim. That is possible, but it is not a question for here. Try stackoverflow

felixsanz commented 7 years ago

@mhartington Normally themes allow color overriding like:

let g:oceanicnext_color_overrides = {
\ "black": {"gui": "#2F343F", "cterm": "235", "cterm16": "0" }
\}

If that were the case, it would be related to your theme, not vim at all.

So yes, it's a question for here. Or even a feature request if the option doesn't exist yet. But I'll stop wasting both's time since you are so unfriendly to the community/users. Please, don't open source with this attitude. Bye.

mhartington commented 7 years ago

Hmmm, I dont think that would fit into what I want for oceanic-next, but thanks for the idea.

felixsanz commented 7 years ago

Since i really love to help others, if someone comes behind me, here is a snippet that will override colors in a theme.

function! AdjustTheme()
     hi! Normal guifg=#c0c5ce ctermfg=251 guibg=256 ctermbg=256 " <- example
endfunction

augroup ThemeOverrides
    autocmd!
    autocmd ColorScheme OceanicNext call AdjustTheme()
augroup END

colorscheme OceanicNext

You can get a list of those lines for Oceanic Next here.