Move many helper functions
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
"=============================================================================
|
||||
" FILE: neosnippet_file.vim
|
||||
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
|
||||
" Last Modified: 19 Nov 2013.
|
||||
" Last Modified: 21 Nov 2013.
|
||||
" License: MIT license {{{
|
||||
" Permission is hereby granted, free of charge, to any person obtaining
|
||||
" a copy of this software and associated documentation files (the
|
||||
@@ -65,7 +65,7 @@ let s:source_user.action_table.unite__new_candidate = {
|
||||
\ }
|
||||
function! s:source_user.action_table.unite__new_candidate.func(candidate) "{{{
|
||||
let filename = input(
|
||||
\ 'New snippet file name: ', neosnippet#get_filetype())
|
||||
\ 'New snippet file name: ', neosnippet#helpers#get_filetype())
|
||||
if filename != ''
|
||||
call neosnippet#commands#_edit(filename)
|
||||
endif
|
||||
@@ -90,7 +90,7 @@ let s:source_runtime.action_table.unite__new_candidate = {
|
||||
\ }
|
||||
function! s:source_runtime.action_table.unite__new_candidate.func(candidate) "{{{
|
||||
let filename = input(
|
||||
\ 'New snippet file name: ', neosnippet#get_filetype())
|
||||
\ 'New snippet file name: ', neosnippet#helpers#get_filetype())
|
||||
if filename != ''
|
||||
call neosnippet#commands#_edit('-runtime ' . filename)
|
||||
endif
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"=============================================================================
|
||||
" FILE: snippet.vim
|
||||
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
|
||||
" Last Modified: 11 Jul 2013.
|
||||
" Last Modified: 21 Nov 2013.
|
||||
" License: MIT license {{{
|
||||
" Permission is hereby granted, free of charge, to any person obtaining
|
||||
" a copy of this software and associated documentation files (the
|
||||
@@ -51,7 +51,7 @@ function! s:source.hooks.on_init(args, context) "{{{
|
||||
let a:context.source__cur_keyword_pos =
|
||||
\ s:get_keyword_pos(neosnippet#util#get_cur_text())
|
||||
let a:context.source__snippets =
|
||||
\ sort(values(neosnippet#get_snippets()))
|
||||
\ sort(values(neosnippet#helpers#get_snippets()))
|
||||
endfunction"}}}
|
||||
|
||||
function! s:source.gather_candidates(args, context) "{{{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"=============================================================================
|
||||
" FILE: snippet_target.vim
|
||||
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
|
||||
" Last Modified: 05 Mar 2013.
|
||||
" Last Modified: 21 Nov 2013.
|
||||
" License: MIT license {{{
|
||||
" Permission is hereby granted, free of charge, to any person obtaining
|
||||
" a copy of this software and associated documentation files (the
|
||||
@@ -49,7 +49,7 @@ function! s:source.hooks.on_init(args, context) "{{{
|
||||
let a:context.source__linenr = line('.')
|
||||
|
||||
let a:context.source__snippets =
|
||||
\ sort(filter(values(neosnippet#get_snippets()),
|
||||
\ sort(filter(values(neosnippet#helpers#get_snippets()),
|
||||
\ "v:val.snip =~# neosnippet#get_placeholder_target_marker_pattern()"))
|
||||
endfunction"}}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user