Skip to content

Commit

Permalink
fix(mini.comment): removed dirty upvalues hack for mini.comments. no …
Browse files Browse the repository at this point in the history
…longer needed
  • Loading branch information
folke committed May 25, 2023
1 parent 4f2bb72 commit b75ed59
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions lua/lazyvim/plugins/coding.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,13 @@ return {
{
"echasnovski/mini.comment",
event = "VeryLazy",
config = function(_, opts)
local c = require("mini.comment")
c.setup(opts)
local H = require("lazyvim.util").get_upvalue(c.setup, "H")
H.get_commentstring = function()
return require("ts_context_commentstring.internal").calculate_commentstring() or vim.bo.commentstring
end
end,
opts = {},
opts = {
options = {
custom_commentstring = function()
return require("ts_context_commentstring.internal").calculate_commentstring() or vim.bo.commentstring
end,
},
},
},

-- better text-objects
Expand Down

0 comments on commit b75ed59

Please sign in to comment.