fatih / vim-go

Go development plugin for Vim
https://www.patreon.com/bhcleek
Other
16.02k stars 1.45k forks source link

Customize the background color of the compiler errors #3684

Closed bjt-user closed 1 month ago

bjt-user commented 1 month ago

Hi,

is it possible to configure the colors of the compiler errors that appear in the status line?

By default it is white font on yellow/sand background color.\ It is very hard to read.\ For me white on black background would be just fine.

I am using the latest commit from the master branch right now.\ (f365d961)

bhcleek commented 1 month ago

Highlighting can be customized as discussed in https://github.com/fatih/vim-go/issues/2829#issuecomment-614331995.

But I'm not sure which errors you're referring to in this case. Can you provide a screenshot to demonstrate?

bjt-user commented 1 month ago

These are the compiler errors that I am referring to: vim-go_compiler_error

I still haven't found the spot where I can adjust these colors.

bhcleek commented 1 month ago

That's the location list window. The color of the errors there is not configured by vim; it'll probably part of your chosen colorscheme.

bjt-user commented 1 month ago

Thank you @bhcleek for the hint.

I have now put this

highlight QuickFixLine ctermbg=none

into my ~/.vim/after/syntax/go.vim and now I have white on black.