Skip to content

Commit 47a223e

Browse files
committed
Don't perform semantic highlighting in 'diff' mode
1 parent d07a1ff commit 47a223e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎luainspect.vim‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" Vim plug-in
22
" Author: Peter Odding <peter@peterodding.com>
3-
" Last Change: July 27, 2010
3+
" Last Change: July 28, 2010
44
" URL: http://peterodding.com/code/vim/lua-inspect/
55
" Version: 0.1.3
66

@@ -35,7 +35,7 @@ augroup END
3535
" Script local functions. {{{1
3636

3737
function! s:AutoEnable()
38-
if &filetype == 'lua'
38+
if &ft == 'lua' && !&diff
3939
LuaInspect
4040
end
4141
endfunction

0 commit comments

Comments
 (0)