Add nvim availability check to annotation plugin
This commit is contained in:
parent
a891a06dae
commit
b9aa577c59
1 changed files with 37 additions and 35 deletions
|
@ -1,6 +1,7 @@
|
||||||
let s:namespace = nvim_create_namespace("annotate_cursor")
|
let s:namespace = nvim_create_namespace("annotate_cursor")
|
||||||
let s:callbacks = []
|
let s:callbacks = []
|
||||||
|
|
||||||
|
if has("nvim")
|
||||||
function! Blame()
|
function! Blame()
|
||||||
if exists("b:blame")
|
if exists("b:blame")
|
||||||
let l:lineblame = b:blame[line('.')-1]
|
let l:lineblame = b:blame[line('.')-1]
|
||||||
|
@ -39,3 +40,4 @@ endfun
|
||||||
|
|
||||||
au CursorMoved * call <SID>update()
|
au CursorMoved * call <SID>update()
|
||||||
au CursorMovedI * call <SID>update()
|
au CursorMovedI * call <SID>update()
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in a new issue