From 44b129aa21df9e80014ffbb06a3f615e18559389 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Sun, 13 Dec 2015 18:00:38 +0900 Subject: [PATCH] Ignore self argument --- autoload/neosnippet/handlers.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autoload/neosnippet/handlers.vim b/autoload/neosnippet/handlers.vim index ec5e4cd..2a944d1 100644 --- a/autoload/neosnippet/handlers.vim +++ b/autoload/neosnippet/handlers.vim @@ -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