Skip to content

Commit

Permalink
unite-neco
Browse files Browse the repository at this point in the history
  • Loading branch information
ujihisa committed Nov 18, 2010
1 parent bb0f116 commit a1d5e08
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions _vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -1087,6 +1087,32 @@ endfunction
" copy the current file name {{{
command! -nargs=0 CopyTheCurrentFileName let @+ = expand('%')
AlterCommandWrapper copythecurrentfilename CopyTheCurrentFileName
" }}}
" unite-neco {{{
let s:unite_source = {'name': 'neco'}

function! s:unite_source.gather_candidates(args, context)
let necos = [
\ "~(-'_'-) goes right",
\ "~(-'_'-) goes right and left",
\ "~(-'_'-) goes right quickly",
\ "~(-'_'-) goes right then smile",
\ "~(-'_'-) -8(*'_'*) go right and left",
\ "(=' .' ) ~w",
\ ]
return map(necos, '{
\ "word": v:val,
\ "source": "neco",
\ "kind": "command",
\ "action__command": "Neco " . v:key,
\ }')
endfunction

"function! unite#sources#locate#define()
" return executable('locate') ? s:unite_source : []
"endfunction
call unite#define_source(s:unite_source)

" }}}
let g:shadow_debug = 1
" FIXME
Expand Down

1 comment on commit a1d5e08

@ujihisa
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.