aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.vim/autoload/airline/extensions/denite.vim
diff options
context:
space:
mode:
authorYaroslav <contact@yaroslavps.com>2020-03-31 17:52:49 +0300
committerYaroslav <contact@yaroslavps.com>2020-03-31 17:52:49 +0300
commit7217c7749e5403c9c7856c1d12c7986eb9c3b460 (patch)
treed60a112d9119a51af1cf5f590c5efad81751edf6 /dotfiles/.vim/autoload/airline/extensions/denite.vim
parent9a3aa7b20a67c1b7991da1da9508ad5f78f76352 (diff)
downloadvimrice-7217c7749e5403c9c7856c1d12c7986eb9c3b460.tar.gz
vimrice-7217c7749e5403c9c7856c1d12c7986eb9c3b460.zip
Goodbye vim, been using neovim for ages now; home directory cleanup
Diffstat (limited to 'dotfiles/.vim/autoload/airline/extensions/denite.vim')
-rw-r--r--dotfiles/.vim/autoload/airline/extensions/denite.vim41
1 files changed, 0 insertions, 41 deletions
diff --git a/dotfiles/.vim/autoload/airline/extensions/denite.vim b/dotfiles/.vim/autoload/airline/extensions/denite.vim
deleted file mode 100644
index e3c1f3b..0000000
--- a/dotfiles/.vim/autoload/airline/extensions/denite.vim
+++ /dev/null
@@ -1,41 +0,0 @@
-" MIT License. Copyright (c) 2017-2018 Thomas Dy et al.
-" vim: et ts=2 sts=2 sw=2
-
-scriptencoding utf-8
-
-if !get(g:, 'loaded_denite', 0)
- finish
-endif
-
-" Denite does not use vim's built-in modal editing but has a custom prompt
-" that implements its own insert/normal mode so we have to handle changing the
-" highlight
-function! airline#extensions#denite#check_denite_mode(bufnr)
- if &filetype != 'denite'
- return ''
- endif
- let mode = split(denite#get_status_mode(), ' ')
- let mode = tolower(mode[1])
- if !exists('b:denite_mode_cache') || mode != b:denite_mode_cache
- call airline#highlighter#highlight([mode], a:bufnr)
- let b:denite_mode_cache = mode
- endif
- return ''
-endfunction
-
-function! airline#extensions#denite#apply(...)
- if &ft == 'denite'
- let w:airline_skip_empty_sections = 0
- call a:1.add_section('airline_a', ' Denite %{airline#extensions#denite#check_denite_mode('.a:2['bufnr'].')}')
- call a:1.add_section('airline_c', ' %{denite#get_status_sources()}')
- call a:1.split()
- call a:1.add_section('airline_y', ' %{denite#get_status_path()} ')
- call a:1.add_section('airline_z', ' %{denite#get_status_linenr()} ')
- return 1
- endif
-endfunction
-
-function! airline#extensions#denite#init(ext)
- call denite#custom#option('_', 'statusline', 0)
- call a:ext.add_statusline_func('airline#extensions#denite#apply')
-endfunction