mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-30 04:24:35 +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",
|
"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")
|
|
||||||
H.get_commentstring = function()
|
|
||||||
return require("ts_context_commentstring.internal").calculate_commentstring() or vim.bo.commentstring
|
return require("ts_context_commentstring.internal").calculate_commentstring() or vim.bo.commentstring
|
||||||
end
|
|
||||||
end,
|
end,
|
||||||
opts = {},
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
-- better text-objects
|
-- better text-objects
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue