Ignore self argument
This commit is contained in:
parent
6866346823
commit
44b129aa21
@ -57,6 +57,11 @@ function! neosnippet#handlers#_complete_done() "{{{
|
|||||||
|
|
||||||
for arg in split(substitute(neosnippet#handlers#_get_in_paren(abbr),
|
for arg in split(substitute(neosnippet#handlers#_get_in_paren(abbr),
|
||||||
\ '(\zs.\{-}\ze)', '', 'g'), '[^[]\zs\s*,\s*')
|
\ '(\zs.\{-}\ze)', '', 'g'), '[^[]\zs\s*,\s*')
|
||||||
|
if arg ==# 'self' && &filetype ==# 'python'
|
||||||
|
" Ignore self argument
|
||||||
|
continue
|
||||||
|
endif
|
||||||
|
|
||||||
if cnt != 1
|
if cnt != 1
|
||||||
let snippet .= ', '
|
let snippet .= ', '
|
||||||
endif
|
endif
|
||||||
|
Loading…
Reference in New Issue
Block a user