-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Allow to customize highlight groups #16
Comments
At least, it seems trivial to allow to customize the |
Try |
That seems close to what I want. And I guess I can achieve my desired customization with something like this: let g:cursorword_highlight = 0
augroup cursorword
autocmd!
autocmd VimEnter,ColorScheme * call MyHighlight()
augroup END
function! MyHighlight() abort
highlight CursorWord0 cterm=bold gui=bold
redir => out
silent! highlight CursorLine
redir END
execute 'highlight CursorWord1 cterm=underline gui=underline'
\ matchstr(out, 'ctermbg=#\?\w\+')
\ matchstr(out, 'guibg=#\?\w\+')
endfunction Thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems that the
cursorword#highlight
function overrides my attempts at customizing theCursorWord[01]
highlight groups. Would it be possible to make a minor change that allows me to customize these groups?The text was updated successfully, but these errors were encountered: