1
0
mirror of https://github.com/amix/vimrc synced 2025-06-16 01:25:00 +08:00

Updated plugins

This commit is contained in:
Amir
2021-10-11 11:30:43 +02:00
parent 83980d8f24
commit 92c794cc2b
100 changed files with 3555 additions and 1631 deletions

View File

@ -85,16 +85,15 @@ snippet adefm
# New Property
snippet property
def ${1:foo}():
doc = "${2:The $1 property.}"
def fget(self):
${3:return self._$1}
def fset(self, value):
${4:self._$1 = value}
def fdel(self):
${0:del self._$1}
return locals()
$1 = property(**$1())
@property
def ${1:foo}(self) -> ${2:type}:
"""${3:doc}"""
return self._${1:foo}
@${1:foo}.setter
def ${1:foo}(self, value: ${2:type}):
self._${1:foo} = value
# Ifs
snippet if
if ${1:condition}: