From 62f2dc02f01da7cfa16e45a9f8ce7036a03c3420 Mon Sep 17 00:00:00 2001 From: kazukazuinaina Date: Wed, 2 Oct 2019 02:37:51 +0900 Subject: [PATCH] Add support for gina.vim add gina-tag command add help about gina.vim update CHANGELOG.md closes #1979 --- CHANGELOG.md | 1 + autoload/airline/extensions.vim | 7 +++++++ doc/airline.txt | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 23ffba2b..3008dbcb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ This is the Changelog for the vim-airline project. - Extensions: - [Coc](https://github.com/neoclide/coc.nvim) support - [Defx](https://github.com/Shougo/defx.nvim) support + - [gina](https://github.com/lambdalisue/gina.vim) support - [vim-bookmark](https://github.com/MattesGroeger/vim-bookmarks) support - [vista.vim](https://github.com/liuchengxu/vista.vim) support - Improvements diff --git a/autoload/airline/extensions.vim b/autoload/airline/extensions.vim index c594497a..45015051 100644 --- a/autoload/airline/extensions.vim +++ b/autoload/airline/extensions.vim @@ -34,6 +34,13 @@ let s:filetype_overrides = { \ 'vimshell': ['vimshell','%{vimshell#get_status_string()}'], \ } +if exists(':Gina') + let s:filetype_overrides['gina-status'] = ['gina', '%{gina#component#repo#preset()}' ] + let s:filetype_overrides['diff'] = ['gina', '%{gina#component#repo#preset()}' ] + let s:filetype_overrides['gina-log'] = ['gina', '%{gina#component#repo#preset()}' ] + let s:filetype_overrides['gina-tag'] = ['gina', '%{gina#component#repo#preset()}' ] +endif + let s:filetype_regex_overrides = {} function! s:check_defined_section(name) diff --git a/doc/airline.txt b/doc/airline.txt index 1316b5f9..0a99fba8 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -678,6 +678,12 @@ It is deactivated by default if |airline-bufferline| is activated. If enabled, the buffer that comes from fugitive, will have added a trailing "[git]" to be able do distinguish between fugitive and non-fugitive buffers. +------------------------------------- *airline-gina* +gina.vim + +Airline displays the gina.vim specific statusline. +(for details, see the help of gina.vim) + ------------------------------------- *airline-grepper* vim-grepper