Skip to content

Commit 74fc979

Browse files
committed
IndentLine handlings
1 parent f5ecb99 commit 74fc979

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

autoload/vital/_easymotion/HitAHint/Motion.vim

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,11 @@ function! s:Hinter.modify_env_for_win(winnr) abort
359359
endif
360360
let self.highlight_ids[a:winnr] += [matchadd(self.config.highlight.shade, '\_.*', 100)]
361361
endif
362+
363+
" XXX: other plugins specific handling
364+
if getbufvar('%', 'indentLine_enabled', 0)
365+
silent! syntax clear IndentLine
366+
endif
362367
endfunction
363368

364369
function! s:Hinter.restore_env() abort
@@ -379,6 +384,12 @@ function! s:Hinter.restore_env() abort
379384
for id in self.highlight_ids[winnr]
380385
call matchdelete(id)
381386
endfor
387+
388+
" XXX: other plugins specific handling
389+
if getbufvar('%', 'indentLine_enabled', 0) && exists(':IndentLinesEnable') is# 2
390+
call setbufvar('%', 'indentLine_enabled', 0)
391+
:IndentLinesEnable
392+
endif
382393
endfor
383394
catch
384395
call s:throw(v:throwpoint . ' ' . v:exception)

0 commit comments

Comments
 (0)