summary refs log tree commit diff
path: root/.vim/snippets/zig.lua
blob: 3a7d12f5e36c14e26180d71d8e561f35bc655be3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
---@diagnostic disable: undefined-global
return {
  s('str', t('[]const u8')),
  s('fn_C', fmt('fn {}({}) callconv(.C) {}', { i(0), i(1), i(2) })),
  s('debug', {
    t('std.log.debug("'),
    i(1, '{any}'),
    t('", .{'),
    i(2),
    t('});'),
    i(0),
  }),
}