changes for vscode
This commit is contained in:
10
init.lua
10
init.lua
@@ -1,8 +1,6 @@
|
|||||||
vim.g.mapleader = ','
|
vim.g.mapleader = ','
|
||||||
vim.g.maplocalleader = ','
|
vim.g.maplocalleader = ','
|
||||||
if not vim.g.vscode then
|
require('config.lazy')
|
||||||
require('config.lazy')
|
require('my_keymappings')
|
||||||
require('my_keymappings')
|
require('my_autocommands')
|
||||||
require('my_autocommands')
|
require('config.options')
|
||||||
require('config.options')
|
|
||||||
end
|
|
||||||
|
|||||||
@@ -10,15 +10,28 @@ if not vim.loop.fs_stat(lazypath) then
|
|||||||
})
|
})
|
||||||
end
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
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({
|
require('lazy').setup({
|
||||||
defaults = {
|
defaults = {
|
||||||
version = false,
|
version = false,
|
||||||
},
|
},
|
||||||
spec = {
|
spec = lazy_spec,
|
||||||
{ import = 'plugins' },
|
|
||||||
{ import = 'themes' },
|
|
||||||
},
|
|
||||||
change_detection = {
|
change_detection = {
|
||||||
-- automatically check for config file changes and reload the ui
|
-- automatically check for config file changes and reload the ui
|
||||||
enabled = true,
|
enabled = true,
|
||||||
|
|||||||
Reference in New Issue
Block a user