Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Added support for SQL #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions comment.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions help/comment-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down