Setup yasnippet
Don't add yasnippet-snippets; hopefully most of the snippets will come from language servers. Also make sure that company-yasnippet is available, to make sure that snippets are at least somewhat discoverable.
This commit is contained in:
parent
4c6b706190
commit
6b66263d7d
3 changed files with 28 additions and 0 deletions
14
modules/development/snippets/python-mode/class
Normal file
14
modules/development/snippets/python-mode/class
Normal file
|
@ -0,0 +1,14 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: new class
|
||||
# key: class
|
||||
# --
|
||||
class $1:
|
||||
"""
|
||||
$2
|
||||
"""
|
||||
def __init__(self${3:, *args, **kwargs}):
|
||||
"""
|
||||
$4
|
||||
"""
|
||||
${0:pass}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue