fix(mini.comment): removed dirty upvalues hack for mini.comments. no longer needed

This commit is contained in:
Folke Lemaitre 2023-05-25 14:24:22 +02:00
parent 4f2bb725be
commit b75ed594a9
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040

View file

@ -135,15 +135,13 @@ return {
{ {
"echasnovski/mini.comment", "echasnovski/mini.comment",
event = "VeryLazy", event = "VeryLazy",
config = function(_, opts) opts = {
local c = require("mini.comment") options = {
c.setup(opts) custom_commentstring = function()
local H = require("lazyvim.util").get_upvalue(c.setup, "H") return require("ts_context_commentstring.internal").calculate_commentstring() or vim.bo.commentstring
H.get_commentstring = function() end,
return require("ts_context_commentstring.internal").calculate_commentstring() or vim.bo.commentstring },
end },
end,
opts = {},
}, },
-- better text-objects -- better text-objects