From 85dbd4176e214696b0ed0892f7fe6c0bce2bc828 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Tue, 15 Aug 2023 12:04:14 +0200 Subject: [luasnip.lua] renamed die to log and logn log and logn seem like better names, also because now we use printf we make an apart logn function that adds a newline on the end. --- config/essentials/nvim/after/plugin/luasnip.lua | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'config/essentials/nvim/after') diff --git a/config/essentials/nvim/after/plugin/luasnip.lua b/config/essentials/nvim/after/plugin/luasnip.lua index 7ee274f..5b45d11 100644 --- a/config/essentials/nvim/after/plugin/luasnip.lua +++ b/config/essentials/nvim/after/plugin/luasnip.lua @@ -155,18 +155,20 @@ ls.add_snippets("sh", { stty \$old_stty_cfg } ]], {}), - parse("fdie", + parse("flogn", [[ - die () + logn () { - echo "\$@" >&2 + >&2 printf '%s\n' "\$@" } ]], {}), - s("die", fmt( + parse("flog", [[ - die "{}: {}"{} - ]], - { c(1, {t "I", t "E", t "W"}), i(2), i(0) })), + log () + { + >&2 printf '%s' "\$@" + } + ]], {}), s("inp", fmt( [[ test -z "${{{}:=$1}}" && -- cgit v1.2.3