mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-10 01:14:41 +02:00
fix(extras): better reasons as to why some extras are included in your config.
This commit is contained in:
parent
6efbdabd1b
commit
eeccbbc407
4 changed files with 45 additions and 5 deletions
|
@ -26,4 +26,13 @@ return {
|
|||
"neovim/nvim-lspconfig",
|
||||
dependencies = {},
|
||||
},
|
||||
|
||||
-- dummy import to save core imports
|
||||
{
|
||||
import = "foobar",
|
||||
enabled = function()
|
||||
LazyVim.plugin.save_core()
|
||||
return false
|
||||
end,
|
||||
},
|
||||
}
|
||||
|
|
|
@ -20,8 +20,9 @@ local v = version.major .. "_" .. version.minor
|
|||
|
||||
local compat = { "0_9" }
|
||||
|
||||
LazyVim.plugin.save_core()
|
||||
if vim.tbl_contains(compat, v) then
|
||||
extras[#extras + 1] = "lazyvim.plugins.compat.nvim-" .. v
|
||||
table.insert(extras, 1, "lazyvim.plugins.compat.nvim-" .. v)
|
||||
end
|
||||
|
||||
table.sort(extras, function(a, b)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue