mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
fix(mini.comment): removed dirty upvalues hack for mini.comments. no longer needed
This commit is contained in:
parent
4f2bb725be
commit
b75ed594a9
1 changed files with 7 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue