"--------------------------------------------------------------------------- " denite.nvim " "if executable('rg') " call denite#custom#var('file/rec', 'command', " \ ['rg', '--files', '--glob', '!.git']) " call denite#custom#var('grep', 'command', ['rg', '--threads', '1']) " call denite#custom#var('grep', 'recursive_opts', []) " call denite#custom#var('grep', 'final_opts', []) " call denite#custom#var('grep', 'separator', ['--']) " call denite#custom#var('grep', 'default_opts', " \ ['-i', '--vimgrep', '--no-heading']) "else " call denite#custom#var('file/rec', 'command', " \ ['ag', '--follow', '--nocolor', '--nogroup', '-g', '']) "endif if executable('rg') call denite#custom#var('file/rec', 'command', \ ['rg', '--files', '--glob', '!.git']) call denite#custom#var('grep,line/external', { \ 'command': ['rg', '--threads', '1'], \ 'recursive_opts': [], \ 'final_opts': [], \ 'separator': ['--'], \ 'default_opts': ['-i', '--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/fruzzy', 'matcher/project_files']) call denite#custom#source('tag', 'matchers', ['matcher/substring']) call denite#custom#source('file/rec', 'matchers', \ ['matcher/fruzzy']) call denite#custom#source('file/old,ghq', 'converters', \ ['converter/relative_word', 'converter/relative_abbr']) call denite#custom#alias('source', 'file/rec/git', 'file/rec') call denite#custom#var('file/rec/git', 'command', \ ['git', 'ls-files', '-co', '--exclude-standard']) " call denite#custom#option('default', 'prompt', '>') " call denite#custom#option('default', 'short_source_names', v:true) call denite#custom#option('default', { \ 'highlight_filter_background': 'CursorLine', \ 'source_names': 'short', \ 'split': 'floating', \ 'filter_split_direction': 'floating', \ }) call denite#custom#option('search', { \ 'highlight_filter_background': 'CursorLine', \ 'source_names': 'short', \ 'filter_split_direction': 'floating', \ }) 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/'])