From 23de12baba9fbfc4ca24581b37c374aa5345cc25 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 25 Nov 2024 13:30:37 +0100 Subject: update nvim config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- .vim/snippets/zig.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .vim/snippets/zig.lua (limited to '.vim/snippets/zig.lua') diff --git a/.vim/snippets/zig.lua b/.vim/snippets/zig.lua new file mode 100644 index 0000000..3a7d12f --- /dev/null +++ b/.vim/snippets/zig.lua @@ -0,0 +1,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), + }), +} -- cgit 1.4.1