]> git.rmz.io Git - dotfiles.git/blobdiff - nvim/lua/snippets/all.lua
nvim: add FPP copyright snippet
[dotfiles.git] / nvim / lua / snippets / all.lua
diff --git a/nvim/lua/snippets/all.lua b/nvim/lua/snippets/all.lua
new file mode 100644 (file)
index 0000000..40c6cdb
--- /dev/null
@@ -0,0 +1,17 @@
+-- TODO: finish this
+local comment_calculate = require("Comment.ft").calculate
+local comment_utils = require("Comment.utils")
+
+return {
+  s(
+    "FPP",
+    fmt(
+      [[Copyright © Focal Point Positioning Limited {year}. All Rights Reserved.
+This code is the copyright of Focal Point Positioning Limited and
+cannot be used, copied or distributed without the express written
+permission of Focal Point Positioning Limited.
+]],
+      { year = i("year", os.date("%Y")) }
+    )
+  ),
+}