Files
nvim/lua/config/lazy.lua
Oliver Hartmann 12f1fa233f changes for vscode
2025-12-19 09:41:27 +01:00

41 lines
967 B
Lua

local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
'git',
'clone',
'--filter=blob:none',
'https://github.com/folke/lazy.nvim.git',
'--branch=stable', -- latest stable release
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
local lazy_spec = {}
if vim.g.vscode then
-- Manually list the files you want in VSCode
lazy_spec = {
{ import = 'plugins.mini_ai' },
{ import = 'plugins.flash' },
-- Do NOT import 'plugins' (which loads the whole folder)
}
else
-- Standard Neovim: Load the entire folder + themes
lazy_spec = {
{ import = 'plugins' },
{ import = 'themes' },
}
end
require('lazy').setup({
defaults = {
version = false,
},
spec = lazy_spec,
change_detection = {
-- automatically check for config file changes and reload the ui
enabled = true,
notify = false, -- get a notification when changes are found
},
})