@@ -4,6 +4,7 @@ local M = {}
4
4
5
5
--- @class LazyConfig
6
6
M .defaults = {
7
+ root = vim .fn .stdpath (" data" ) .. " /lazy" , -- directory where plugins will be installed
7
8
defaults = {
8
9
lazy = false , -- should plugins be loaded at startup?
9
10
version = nil ,
@@ -17,10 +18,6 @@ M.defaults = {
17
18
log = { " --since=1 days ago" }, -- commits from the last 3 days
18
19
timeout = 120 , -- processes taking over 2 minutes will be killed
19
20
},
20
- package = {
21
- path = vim .fn .stdpath (" data" ) .. " /site" ,
22
- name = " lazy" , -- plugins will be installed under package.path/pack/{name}/opt
23
- },
24
21
-- Any plugin spec that contains one of the patterns will use your
25
22
-- local repo in the projects folder instead of fetchig it from github
26
23
-- Mostly useful for plugin developers.
@@ -66,9 +63,6 @@ M.ns = vim.api.nvim_create_namespace("lazy")
66
63
--- @type string | LazySpec Should be either a string pointing to a module , or a spec
67
64
M .spec = nil
68
65
69
- --- @type string Opt directory where plugins will be installed
70
- M .root = nil
71
-
72
66
--- @type table<string , LazyPlugin>
73
67
M .plugins = {}
74
68
@@ -86,12 +80,8 @@ function M.setup(spec, opts)
86
80
M .options .performance .cache = require (" lazy.core.cache" )
87
81
table.insert (M .options .install .colorscheme , " habamax" )
88
82
89
- M .root = M .options .package .path .. " /pack/" .. M .options .package .name .. " /opt"
90
-
91
83
if M .options .performance .reset_packpath then
92
- vim .go .packpath = M .options .package .path
93
- else
94
- vim .opt .packpath :prepend (M .options .package .path )
84
+ vim .go .packpath = " "
95
85
end
96
86
97
87
vim .api .nvim_create_autocmd (" User" , {
0 commit comments