refactor: comments code
This commit is contained in:
@ -225,7 +225,10 @@ return {
|
|||||||
opts = {
|
opts = {
|
||||||
enable_autocmd = false,
|
enable_autocmd = false,
|
||||||
},
|
},
|
||||||
init = function()
|
},
|
||||||
|
{
|
||||||
|
import = "lazyvim.plugins.extras.coding.mini-comment",
|
||||||
|
enabled = function()
|
||||||
if vim.fn.has("nvim-0.10") == 1 then
|
if vim.fn.has("nvim-0.10") == 1 then
|
||||||
-- Majestically override the native `get_commentstring` function.
|
-- Majestically override the native `get_commentstring` function.
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
@ -237,10 +240,11 @@ return {
|
|||||||
end
|
end
|
||||||
)
|
)
|
||||||
end)
|
end)
|
||||||
|
else
|
||||||
|
return true
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{ import = "lazyvim.plugins.extras.coding.mini-comment", enabled = vim.fn.has("nvim-0.10") == 0 },
|
|
||||||
|
|
||||||
-- Better text-objects
|
-- Better text-objects
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user