justinmk / vim-sneak

The missing motion for Vim :athletic_shoe:
http://www.vim.org/scripts/script.php?script_id=4809
MIT License
3.24k stars 88 forks source link

Changing label colours fails #306

Closed RhvdG closed 12 months ago

RhvdG commented 12 months ago

I added

highlight Sneak guifg=red guibg=yellow ctermfg=red ctermbg=yellow

highlight SneakLabel guifg=red guibg=yellow ctermfg=red ctermbg=yellow

highlight SneakScope guifg=red guibg=yellow ctermfg=red ctermbg=yellow

to my .vimrc, but am still stuck with white/black first hit, and magenta labels, which put a hurt on my eyes.

justinmk commented 12 months ago

I just tried putting those lines both at the beginning and the end of my config, and it works in both cases.

This means some plugin you have is interfering. Or possibly a colorscheme call is loading a theme that does weird things.

You could try putting your customizations in a ColorScheme event handler:

autocmd ColorScheme * highlight Sneak guifg=red guibg=yellow ctermfg=red ctermbg=yellow
autocmd ColorScheme * highlight SneakLabel guifg=red guibg=yellow ctermfg=red ctermbg=yellow
autocmd ColorScheme * highlight SneakScope guifg=red guibg=yellow ctermfg=red ctermbg=yellow

If you have other usage questions you need to post on https://vi.stackexchange.com/

RhvdG commented 12 months ago

Thanks, the autocmd handler worked.

I haven't been able to identify the guilty plugin. In case this is of interest to anyone, these are my active plugins:

Plug 'romainl/vim-cool' Plug 'kana/vim-textobj-user' Plug 'preservim/vim-textobj-sentence' Plug 'preservim/vim-markdown' Plug 'tpope/vim-commentary' Plug 'tpope/vim-surround' Plug 'tpope/vim-obsession' Plug 'tpope/vim-eunuch' Plug 'unblevable/quick-scope' Plug 'justinmk/vim-sneak' Plug 'tpope/vim-repeat' Plug 'vim-scripts/loremipsum' Plug 'svermeulen/vim-yoink' Plug 'lervag/vimtex' Plug 'osyo-manga/vim-hopping'