feat(vscode): automatically enable the vscode extra when running in vscode

This commit is contained in:
Folke Lemaitre committed 2024-11-16 07:35:47 +01:00
1 parent b8407f4b12
commit 1c5a330b6b
1 file changed
+3
+3
View File
@@ -27,6 +27,9 @@ LazyVim.plugin.save_core()
if vim.tbl_contains(compat, v) then if vim.tbl_contains(compat, v) then
table.insert(extras, 1, "lazyvim.plugins.compat.nvim-" .. v) table.insert(extras, 1, "lazyvim.plugins.compat.nvim-" .. v)
end end
if vim.g.vscode then
table.insert(extras, 1, "lazyvim.plugins.extras.vscode")
end
table.sort(extras, function(a, b) table.sort(extras, function(a, b)
local pa = prios[a] or 50 local pa = prios[a] or 50