From 646dd0a1c28ed587c74c892ce664320c1120b84c Mon Sep 17 00:00:00 2001 From: yasuda Date: Fri, 12 Nov 2021 11:45:58 +0900 Subject: [PATCH] Custom spell check command support - Add an option `g:airline_spell_check_command` --- autoload/airline/parts.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/airline/parts.vim b/autoload/airline/parts.vim index 1f59300c..9af5b612 100644 --- a/autoload/airline/parts.vim +++ b/autoload/airline/parts.vim @@ -66,7 +66,7 @@ endfunction function! airline#parts#spell() let spelllang = g:airline_detect_spelllang ? printf(" [%s]", toupper(substitute(&spelllang, ',', '/', 'g'))) : '' - if g:airline_detect_spell && &spell + if g:airline_detect_spell && (&spell || (exists('g:airline_spell_check_command') && eval(g:airline_spell_check_command))) let winwidth = airline#util#winwidth() if winwidth >= 90 return g:airline_symbols.spell . spelllang