Skip to content
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