extensions: Add a zhihu Neovim extension
CI / Test (v7.4) (push) Has been cancelled
CI / Test (v8.0.0000) (push) Has been cancelled
CI / Test (v8.1.0000) (push) Has been cancelled
CI / Test (v8.2.0000) (push) Has been cancelled
CI / Test (v8.2.1000) (push) Has been cancelled
CI / Test (v9.0.0000) (push) Has been cancelled
CI / Test (v9.1.0000) (push) Has been cancelled
reviewdog / runner / vint (push) Has been cancelled

closes: #2740

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Wu, Zhenyu
2026-02-27 09:42:31 +01:00
committed by Christian Brabandt
parent b03fdc542f
commit 4ab7c731fe
4 changed files with 69 additions and 0 deletions
+12
View File
@@ -149,6 +149,18 @@ function! airline#util#has_fugitive()
return s:has_fugitive
endfunction
function! airline#util#has_zhihu()
if !has('nvim')
return 0
endif
try
call v:lua.require'zhihu'.setup()
catch
return 0
endtry
return 1
endfunction
function! airline#util#has_gina()
if !exists("s:has_gina")
let s:has_gina = (exists(':Gina') && v:version >= 800)