Added tsx syntax support
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
--- @type LazyPluginSpec
|
--- @type LazyPluginSpec
|
||||||
return {
|
return {
|
||||||
"numToStr/Comment.nvim",
|
"numToStr/Comment.nvim",
|
||||||
|
dependencies = "JoosepAlviste/nvim-ts-context-commentstring",
|
||||||
keys = { "gcc", "gbc", { "gc", mode = "v" }, { "gb", mode = "v" }, "gcO", "gco", "gcA" },
|
keys = { "gcc", "gbc", { "gc", mode = "v" }, { "gb", mode = "v" }, "gcO", "gco", "gcA" },
|
||||||
config = function()
|
config = function()
|
||||||
local comment = require("Comment")
|
local comment = require("Comment")
|
||||||
comment.setup({
|
comment.setup({
|
||||||
padding = true,
|
padding = true,
|
||||||
sticky = true,
|
sticky = true,
|
||||||
ignore = nil,
|
|
||||||
toggler = {
|
toggler = {
|
||||||
line = "gcc",
|
line = "gcc",
|
||||||
block = "gbc",
|
block = "gbc",
|
||||||
@@ -25,8 +25,7 @@ return {
|
|||||||
basic = true,
|
basic = true,
|
||||||
extra = true,
|
extra = true,
|
||||||
},
|
},
|
||||||
pre_hook = nil,
|
pre_hook = require("ts_context_commentstring.integrations.comment_nvim").create_pre_hook(),
|
||||||
post_hook = nil,
|
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user