nvim: fix commentstring error

This commit is contained in:
Valeriy Filippov
2026-04-02 18:15:32 +03:00
parent 905e22a712
commit ab111b9fb9

View File

@@ -2,19 +2,19 @@
return {
"numToStr/Comment.nvim",
event = { "BufReadPre", "BufNewFile" },
dependencies = {
"JoosepAlviste/nvim-ts-context-commentstring",
},
config = function()
-- import comment plugin safely
local comment = require("Comment")
local ts_context_commentstring = require("ts_context_commentstring.integrations.comment_nvim")
-- enable comment
comment.setup({
-- for commenting tsx, jsx, svelte, html files
pre_hook = ts_context_commentstring.create_pre_hook(),
})
end,
-- dependencies = {
-- "JoosepAlviste/nvim-ts-context-commentstring",
-- },
-- config = function()
-- -- import comment plugin safely
-- local comment = require("Comment")
--
-- local ts_context_commentstring = require("ts_context_commentstring.integrations.comment_nvim")
--
-- -- enable comment
-- comment.setup({
-- -- for commenting tsx, jsx, svelte, html files
-- pre_hook = ts_context_commentstring.create_pre_hook(),
-- })
-- end,
}