From 460ed028645bdb52ebb4f83a84e64dbf30861ff1 Mon Sep 17 00:00:00 2001 From: Bill Neubauer Date: Tue, 26 Jul 2016 10:06:40 +0900 Subject: [PATCH] Add Go to the list of C-like languages. --- autoload/airline/extensions/whitespace.vim | 2 +- doc/airline.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/airline/extensions/whitespace.vim b/autoload/airline/extensions/whitespace.vim index 1546079..375a890 100644 --- a/autoload/airline/extensions/whitespace.vim +++ b/autoload/airline/extensions/whitespace.vim @@ -15,7 +15,7 @@ let s:indent_algo = get(g:, 'airline#extensions#whitespace#mixed_indent_algo', 0 let s:skip_check_ft = {'make': ['indent', 'mixed-indent-file'] } let s:max_lines = get(g:, 'airline#extensions#whitespace#max_lines', 20000) let s:enabled = get(g:, 'airline#extensions#whitespace#enabled', 1) -let s:c_like_langs = get(g:, 'airline#extensions#c_like_langs', [ 'c', 'cpp', 'cuda', 'javascript', 'ld', 'php' ]) +let s:c_like_langs = get(g:, 'airline#extensions#c_like_langs', [ 'c', 'cpp', 'cuda', 'go', 'javascript', 'ld', 'php' ]) function! s:check_mixed_indent() if s:indent_algo == 1 diff --git a/doc/airline.txt b/doc/airline.txt index 828538b..9fc206f 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -500,7 +500,7 @@ eclim * configure, which filetypes have special treatment of /* */ comments, matters for mix-indent-file algorithm: > - let airline#extensions#c_like_langs = ['c', 'cpp', 'cuda', 'javascript', 'ld', 'php'] + let airline#extensions#c_like_langs = ['c', 'cpp', 'cuda', 'go', 'javascript', 'ld', 'php'] < * disable whitespace checking for an individual buffer > " Checking is enabled by default because b:airline_whitespace_disabled