diff --git a/neovim/init.vim b/neovim/init.vim index 95a47ea..c2c14f9 100644 --- a/neovim/init.vim +++ b/neovim/init.vim @@ -104,9 +104,14 @@ map ;x :x set wildignore+=*.swp,*~ +map ;b :Denite buffer + +map ;f :Denite file_rec call denite#custom#var('file_rec', 'command', \ ['rg', '--files', '--hidden'], \) + +map ;g :Denite grep call denite#custom#var('grep', 'command', ['rg']) call denite#custom#var('grep', 'default_opts', \ ['--vimgrep', '--no-heading', '--smart-case', '--hidden']) @@ -114,16 +119,13 @@ call denite#custom#var('grep', 'recursive_opts', []) call denite#custom#var('grep', 'pattern_opt', ['--regexp']) call denite#custom#var('grep', 'separator', ['--']) call denite#custom#var('grep', 'final_opts', []) +call denite#custom#source('grep', 'converters', ['converter_abbr_word']) call denite#custom#option("_", { \ "highlight_matched_char": "DeniteMatched", \ "highlight_matched_range": "None", \}) -map ;b :Denite buffer -map ;f :Denite file_rec -map ;g :Denite grep - let g:deoplete#enable_at_startup = 1 let g:deoplete#disable_auto_complete = 1 inoremap deoplete#mappings#manual_complete()