Added Denite settings

This commit is contained in:
Dennis Potter 2018-06-21 00:25:57 +02:00
parent 5b548af0da
commit 4f01a379e1
1 changed files with 19 additions and 0 deletions

View File

@ -115,6 +115,7 @@ Plug 'rdnetto/YCM-generator', { 'branch': 'stable'}
Plug 'chrisbra/Recover.vim'
Plug 'Yggdroot/indentLine'
Plug 'tpope/vim-surround'
Plug 'Shougo/denite.nvim'
" versioning
Plug 'tpope/vim-fugitive'
@ -130,3 +131,21 @@ Plug 'vim-syntastic/syntastic'
Plug 'sakhnik/nvim-gdb'
call plug#end()
" Denite settings
nnoremap <space>e :Denite file_rec <cr>
call denite#custom#map(
\ 'insert',
\ '<C-j>',
\ '<denite:move_to_next_line>',
\ 'noremap'
\)
call denite#custom#map(
\ 'insert',
\ '<C-k>',
\ '<denite:move_to_previous_line>',
\ 'noremap'
\)
call denite#custom#filter('matcher_ignore_globs', 'ignore_globs', [ '.git/', '.gradle/', 'build/', '.idea/', 'app/', '*.png', '*.so', '*.a', '*.jar', 'target/' ])
call denite#custom#source('file_rec', 'matchers', ['matcher_ignore_globs', 'matcher/fuzzy'])