mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-26 10:48:45 +02:00
refactor: comments code
This commit is contained in:
parent
3c4ebd522e
commit
9839f10013
1 changed files with 6 additions and 2 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue