Ignore rust self

This commit is contained in:
Tyler Horth 2017-06-19 21:07:05 -04:00
rodzic af6e74863a
commit 19ecfee78c
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -357,7 +357,9 @@ function! neosnippet#parser#_get_completed_snippet(completed_item, cur_text, nex
\ neosnippet#parser#_get_in_paren(key, pair, abbr),
\ key.'\zs.\{-}\ze'.pair . '\|<\zs.\{-}\ze>', '', 'g'),
\ '[^[]\zs\s*,\s*')
if key ==# '(' && arg ==# 'self' && &filetype ==# 'python'
if key ==# '(' && (
\ (&filetype ==# 'python' && arg ==# 'self') ||
\ (&filetype ==# 'rust' && arg =~# '\m^&\?\(mut \)\?self$'))
" Ignore self argument
continue
endif