"--------------------------------------------------------------------------- " denite.nvim " if executable('rg') call denite#custom#var('file/rec', 'command', \ ['rg', '--files', '--glob', '!.git', '--color', 'never']) call denite#custom#var('grep', { \ 'command': ['rg', '--threads', '1'], \ 'recursive_opts': [], \ 'final_opts': [], \ 'separator': ['--'], \ 'default_opts': ['--smart-case', '--vimgrep', '--no-heading'], \ }) else call denite#custom#var('file/rec', 'command', \ ['ag', '--follow', '--nocolor', '--nogroup', '-g', '']) endif call denite#custom#source('file/old', 'matchers', [ \ 'matcher/clap', 'matcher/project_files', 'matcher/ignore_globs', \ ]) call denite#custom#source('tag', 'matchers', ['matcher/substring']) call denite#custom#source('file/old,ghq', 'converters', \ ['converter/relative_word', 'converter/relative_abbr']) call denite#custom#alias('source', 'file/git', 'file/rec') call denite#custom#var('file/git', 'command', \ ['git', 'ls-files', '-co', '--exclude-standard']) call denite#custom#filter('matcher/clap', \ 'clap_path', expand('~/src/vim-clap')) call denite#custom#source('file/rec', 'matchers', [ \ 'matcher/clap', \ ]) call denite#custom#source('line', 'matchers', [ \ 'matcher/substring', \ ]) call denite#custom#alias('source', 'file/dirty', 'file/rec') call denite#custom#var('file/dirty', 'command', \ ['git', 'ls-files', '-mo', \ '--directory', '--no-empty-directory', '--exclude-standard']) " call denite#custom#option('default', 'prompt', '>') " call denite#custom#option('default', 'short_source_names', v:true) if has('nvim') call denite#custom#option('files', { \ 'highlight_filter_background': 'CursorLine', \ 'split': 'floating', \ 'floating_preview': v:true, \ }) else call denite#custom#option('files', { \ 'highlight_filter_background': 'CursorLine', \ }) endif call denite#custom#option('search', { \ 'highlight_filter_background': 'CursorLine', \ }) call denite#custom#option('_', { \ 'source_names': 'short', \ 'filter_split_direction': 'floating', \ 'vertical_preview': v:true, \ }) let s:menus = {} let s:menus.vim = { \ 'description': 'Vim', \ } let s:menus.vim.file_candidates = [ \ [' > Edit configuation file (init.vim)', '~/.config/nvim/init.vim'] \ ] call denite#custom#var('menu', 'menus', s:menus) call denite#custom#filter('matcher/ignore_globs', 'ignore_globs', \ [ '.git/', '.ropeproject/', '__pycache__/', \ 'venv/', 'images/', '*.min.*', 'img/', 'fonts/'])