1
0
mirror of https://github.com/amix/vimrc synced 2025-07-03 14:14:59 +08:00

Update vim-snippets.

This commit is contained in:
Kurtis Moxley
2022-05-19 22:57:32 +08:00
parent 421583d7d6
commit 5608a81ee4
24 changed files with 962 additions and 263 deletions

View File

@ -88,11 +88,11 @@ snippet property
@property
def ${1:foo}(self) -> ${2:type}:
"""${3:doc}"""
return self._${1:foo}
return self._$1
@${1:foo}.setter
def ${1:foo}(self, value: ${2:type}):
self._${1:foo} = value
@$1.setter
def $1(self, value: $2):
self._$1 = value
# Ifs
snippet if
@ -159,6 +159,10 @@ snippet ifmain
# __magic__
snippet _
__${1:init}__
# debugger breakpoint
snippet br
breakpoint()
# python debugger (pdb)
snippet pdb
__import__('pdb').set_trace()