diff --git a/README.md b/README.md index 560fb33..19c6d0e 100644 --- a/README.md +++ b/README.md @@ -322,7 +322,7 @@ return { dev = { -- directory where you store your local plugin projects path = "~/projects", - -- you may include a list of local paths to also check. e.g. { '~/projects1', '~/projects1' } + -- you may include a list of local paths to also check. e.g. { '~/projects1', '~/projects2' } extra_paths = nil, ---@type string[] plugins that match these patterns will use your local versions instead of being fetched from GitHub patterns = {}, -- For example {"folke"} @@ -438,9 +438,10 @@ return { -- "tutor", -- "zipPlugin", }, - -- to work around circumstances in which your config folder is - -- not in the normal location when performance.rtp.reset = true - -- such as when loading your config folder from the nix store. + -- custom_config_dir exists to work around circumstances + -- in which your config folder is -- not in the normal location, + -- and thus is unloaded when performance.rtp.reset = true + -- such as when loaded from the nix store custom_config_dir = vim.fn.stdpath("config"), }, }, diff --git a/lua/lazy/core/config.lua b/lua/lazy/core/config.lua index d22f747..66ba4f9 100644 --- a/lua/lazy/core/config.lua +++ b/lua/lazy/core/config.lua @@ -32,7 +32,7 @@ M.defaults = { dev = { -- directory where you store your local plugin projects path = "~/projects", - -- you may include a list of local paths to also check. e.g. { '~/projects1', '~/projects1' } + -- you may include a list of local paths to also check. e.g. { '~/projects1', '~/projects2' } extra_paths = nil, ---@type string[] plugins that match these patterns will use your local versions instead of being fetched from GitHub patterns = {}, -- For example {"folke"} @@ -148,9 +148,10 @@ M.defaults = { -- "tutor", -- "zipPlugin", }, - -- to work around circumstances in which your config folder is - -- not in the normal location when performance.rtp.reset = true - -- such as when loading your config folder from the nix store. + -- custom_config_dir exists to work around circumstances + -- in which your config folder is -- not in the normal location, + -- and thus is unloaded when performance.rtp.reset = true + -- such as when loaded from the nix store custom_config_dir = vim.fn.stdpath("config"), }, },