unblevable / quick-scope

Lightning fast left-right movement in Vim
MIT License
1.43k stars 54 forks source link

underline target characters without changing its color #70

Closed smartding closed 2 years ago

smartding commented 3 years ago

I just want to underline the target characters while keeping the rest of its original highlight setting. Is this possible?

bradford-smith94 commented 3 years ago

Just removing the colors from the highlight group should work, try something like the following:

augroup qs_colors
  autocmd!
  autocmd ColorScheme * highlight QuickScopePrimary gui=underline cterm=underline
  autocmd ColorScheme * highlight QuickScopeSecondary gui=underline cterm=underline
augroup END
smartding commented 3 years ago

Just removing the colors from the highlight group should work, try something like the following:

augroup qs_colors
  autocmd!
  autocmd ColorScheme * highlight QuickScopePrimary gui=underline cterm=underline
  autocmd ColorScheme * highlight QuickScopeSecondary gui=underline cterm=underline
augroup END

thanks. It works with regex based syntax highlighting. But it doesn't with treesitter highlighting. The underline works, but some of the target characters shows a different color. I'm using neovim with latest master, lua treesitter parser.

smartding commented 2 years ago

It's all working now