Skip to content

Commit

Permalink
feat(comment): set rust commentstring
Browse files Browse the repository at this point in the history
liubang committed Dec 22, 2022
1 parent c3bf420 commit 4ba04bb
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lua/lb/cfg/comment.lua
Original file line number Diff line number Diff line change
@@ -3,11 +3,14 @@
-- comment.lua -
--
-- Created by liubang on 2021/08/31 22:41
-- Last Modified: 2022/10/18 23:28
-- Last Modified: 2022/12/22 19:16
--
-- =====================================================================

require("Comment").setup {
local comment = require "Comment"
local ft = require "Comment.ft"

comment.setup {
padding = true,

pre_hook = require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook(),
@@ -24,3 +27,5 @@ require("Comment").setup {
extra = false,
},
}

ft.set("rust", "///%s")

0 comments on commit 4ba04bb

Please sign in to comment.