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: