From c92e1ff3c9ba4f0af3807f754d67f92c328db689 Mon Sep 17 00:00:00 2001 From: Tanel Puhu Date: Sat, 28 Apr 2018 12:49:02 +0300 Subject: [PATCH] added sql --- comment.lua | 1 + help/comment-plugin.md | 1 + 2 files changed, 2 insertions(+) diff --git a/comment.lua b/comment.lua index 5082ccd..9306bcf 100644 --- a/comment.lua +++ b/comment.lua @@ -21,6 +21,7 @@ ft["d"] = "// %s" ft["swift"] = "// %s" ft["julia"] = "# %s" ft["latex"] = "\% %s" +ft["sql"] = "-- %s" function onViewOpen(v) if v.Buf.Settings["commenttype"] == nil then diff --git a/help/comment-plugin.md b/help/comment-plugin.md index fd9b869..67219bb 100644 --- a/help/comment-plugin.md +++ b/help/comment-plugin.md @@ -40,6 +40,7 @@ but it is only available for certain filetypes: * rust: `// %s` * shell: `# %s` * swift: `// %s` +* sql: `-- %s` If your filetype is not available here, you can simply modify the `commenttype` option: