mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +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 = {
|
||||
enable_autocmd = false,
|
||||
},
|
||||
init = function()
|
||||
},
|
||||
{
|
||||
import = "lazyvim.plugins.extras.coding.mini-comment",
|
||||
enabled = function()
|
||||
if vim.fn.has("nvim-0.10") == 1 then
|
||||
-- Majestically override the native `get_commentstring` function.
|
||||
vim.schedule(function()
|
||||
|
@ -237,10 +240,11 @@ return {
|
|||
end
|
||||
)
|
||||
end)
|
||||
else
|
||||
return true
|
||||
end
|
||||
end,
|
||||
},
|
||||
{ import = "lazyvim.plugins.extras.coding.mini-comment", enabled = vim.fn.has("nvim-0.10") == 0 },
|
||||
|
||||
-- Better text-objects
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue