Add nvim availability check to annotation plugin

This commit is contained in:
Talia 2021-10-05 19:30:37 +02:00
parent a891a06dae
commit b9aa577c59

View file

@ -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