helix: Add snippets
This commit is contained in:
parent
03c3ebbc2f
commit
92b481038d
1 changed files with 48 additions and 0 deletions
22
helix/snippets/zig.toml
Normal file
22
helix/snippets/zig.toml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
[[snippets]]
|
||||
prefix = 'Struct'
|
||||
description = 'Struct declaration'
|
||||
body = '''
|
||||
const $1 = struct {
|
||||
${0}
|
||||
};
|
||||
'''
|
||||
|
||||
[[snippets]]
|
||||
prefix = 'Enum'
|
||||
description = 'Enum declaration'
|
||||
body = '''
|
||||
const $1 = union(enum) {
|
||||
${0}
|
||||
};
|
||||
'''
|
||||
|
||||
[[snippets]]
|
||||
prefix = 'dbg'
|
||||
description = 'Debug print'
|
||||
body = 'std.debug.print("$1\n", .{ $0 });'
|
||||
Loading…
Reference in a new issue