diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-08-15 12:04:14 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-08-15 12:04:14 +0200 |
commit | 85dbd4176e214696b0ed0892f7fe6c0bce2bc828 (patch) | |
tree | 2a62cf4cf9299d00263ed86a14fe2dcad60b32c0 | |
parent | e1893b1b31503adaa2c2484b57a5d7a4a5d0516c (diff) |
[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.
-rw-r--r-- | config/essentials/nvim/after/plugin/luasnip.lua | 16 |
1 files changed, 9 insertions, 7 deletions
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}}" && |