ctrl k
  • lua/config/lazy.lua
    ■ ■ ■ ■ ■ ■
    skipped 21 lines
    22 22   { import = "plugins" },
    23 23  }, {
    24 24   dev = {
    25  - -- TODO: uncomment when PR merged: https://github.com/folke/lazy.nvim/pull/1157
    26  - -- ---@param plugin LazyPlugin
    27  - -- path = function(plugin)
    28  - -- local dir = plugin.url:match "^https://(.*)%.git$"
    29  - -- return dir and vim.env.GIT_PATH and vim.env.GIT_PATH .. "/" .. dir or "~/projects/" .. plugin.name
    30  - -- end,
     25 + -- TODO: remove check when PR merged: https://github.com/folke/lazy.nvim/pull/1157
     26 + ---@param plugin LazyPlugin
     27 + path = vim.env.LAZY and function(plugin)
     28 + local dir = plugin.url:match "^https://(.*)%.git$"
     29 + return dir and vim.env.GIT_PATH and vim.env.GIT_PATH .. "/" .. dir or "~/projects/" .. plugin.name
     30 + end,
    31 31   patterns = {
    32 32   -- "AstroNvim", -- local AstroNvim
    33 33   },
    skipped 19 lines
Please wait...
Page is in error, reload to recover