From a01b8e883fce56c4e3e70c177e1c56d03f1b762e Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sun, 28 Mar 2021 10:40:58 +0200 Subject: [PATCH] Add JSON.stringify snippets --- .vim/snips/javascript.snippets | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.vim/snips/javascript.snippets b/.vim/snips/javascript.snippets index 70a4318..4920b16 100644 --- a/.vim/snips/javascript.snippets +++ b/.vim/snips/javascript.snippets @@ -2,3 +2,16 @@ snippet clg "console.log" console.log($0) endsnippet +snippet Js "JSON.stringify" +JSON.stringify($0) +endsnippet + +snippet Jsf "JSON.stringify (formatted)" +JSON.stringify($0, 0, 2) +endsnippet + +snippet preJsf "JSON.stringify (formatted and wrapped)" +
+  JSON.stringify($0, 0, 2)
+
+endsnippet