Ignore self argument

This commit is contained in:
Shougo Matsushita 2015-12-13 18:00:38 +09:00
parent 6866346823
commit 44b129aa21
1 changed files with 5 additions and 0 deletions

View File

@ -57,6 +57,11 @@ function! neosnippet#handlers#_complete_done() "{{{
for arg in split(substitute(neosnippet#handlers#_get_in_paren(abbr),
\ '(\zs.\{-}\ze)', '', 'g'), '[^[]\zs\s*,\s*')
if arg ==# 'self' && &filetype ==# 'python'
" Ignore self argument
continue
endif
if cnt != 1
let snippet .= ', '
endif