context.vim icon indicating copy to clipboard operation
context.vim copied to clipboard

Problem with vim-indent-guides

Open noscript opened this issue 5 years ago • 1 comments

When using indent-guides plugin the context view doesn't get indentation highlight:

image

Is it something easy to fix?

noscript avatar Jun 01 '20 18:06 noscript

I found a simple workaround for popups:

function! MyContextIndentUpdate()
	let popup_winid = get(g:context.popups, win_getid(), -1)
	if popup_winid != -1
		call win_execute(popup_winid, 'call indent_guides#enable()')
	endif
endfunction

augroup MyContext
	autocmd!
	autocmd CursorHold * call MyContextIndentUpdate()
augroup END

Unless there is a better solution, the issue can be closed.

noscript avatar Jun 01 '20 21:06 noscript