Skip to content

Instantly share code, notes, and snippets.

@qickstarter
Created December 9, 2013 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qickstarter/7872458 to your computer and use it in GitHub Desktop.
Save qickstarter/7872458 to your computer and use it in GitHub Desktop.
diff --git a/autoload/neocomplete/sources/file.vim b/autoload/neocomplete/sources/file.vim
index 02b3ea1..1d2f6ae 100644
--- a/autoload/neocomplete/sources/file.vim
+++ b/autoload/neocomplete/sources/file.vim
@@ -30,7 +30,6 @@ set cpo&vim
let s:source = {
\ 'name' : 'file',
\ 'kind' : 'manual',
- \ 'mark' : '[F]',
\ 'rank' : 3,
\ 'sorters' : 'sorter_filename',
\ 'converters' : ['converter_remove_next_keyword', 'converter_abbr'],
@@ -115,6 +114,7 @@ function! s:get_glob_files(complete_str, path) "{{{
\ files, "{
\ 'word' : fnamemodify(v:val, ':t'),
\ 'action__is_directory' : isdirectory(v:val),
+ \ 'kind' : isdirectory(v:val) ? '[Dir]' : '[File]',
\ }")
let candidates = []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment