nvim: fix commentstring error
This commit is contained in:
@@ -2,19 +2,19 @@
|
|||||||
return {
|
return {
|
||||||
"numToStr/Comment.nvim",
|
"numToStr/Comment.nvim",
|
||||||
event = { "BufReadPre", "BufNewFile" },
|
event = { "BufReadPre", "BufNewFile" },
|
||||||
dependencies = {
|
-- dependencies = {
|
||||||
"JoosepAlviste/nvim-ts-context-commentstring",
|
-- "JoosepAlviste/nvim-ts-context-commentstring",
|
||||||
},
|
-- },
|
||||||
config = function()
|
-- config = function()
|
||||||
-- import comment plugin safely
|
-- -- import comment plugin safely
|
||||||
local comment = require("Comment")
|
-- local comment = require("Comment")
|
||||||
|
--
|
||||||
local ts_context_commentstring = require("ts_context_commentstring.integrations.comment_nvim")
|
-- local ts_context_commentstring = require("ts_context_commentstring.integrations.comment_nvim")
|
||||||
|
--
|
||||||
-- enable comment
|
-- -- enable comment
|
||||||
comment.setup({
|
-- comment.setup({
|
||||||
-- for commenting tsx, jsx, svelte, html files
|
-- -- for commenting tsx, jsx, svelte, html files
|
||||||
pre_hook = ts_context_commentstring.create_pre_hook(),
|
-- pre_hook = ts_context_commentstring.create_pre_hook(),
|
||||||
})
|
-- })
|
||||||
end,
|
-- end,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user