lazy.nvim/lua/lazy/core
atusy a6f782adc1
feat(plugin): dev.path can now be a function (#1157)
In some case, `dev.path .. plugin.name` is not enoguh.

For example, when using `ghq` to manage projects, plugin directories may
vary by onewrs of the plugins.

With this change, users can do something like below

``` lua
require("lazy").setup("plugins", {
  dev = {
    path = function(p)
      -- ghq
      local path, cnt = string.gsub(p.url, "^https://(.*)%.git$", "~/ghq/%1")
      if cnt == 1 then
        return path
      end

      -- fallback to default
      return "~/projects/" .. plugin.name
    end,
  },
})
```
2024-01-20 14:19:09 +01:00
..
handler fix(keys): allow global/local ft keymaps to exist at the same time. Fixes #1241 2024-01-20 14:11:32 +01:00
cache.lua fix(loader): keep using the internal lua cache till 0.9.1 2023-04-19 12:59:39 +02:00
config.lua feat(plugin): dev.path can now be a function (#1157) 2024-01-20 14:19:09 +01:00
loader.lua fix(loader): when reloading, clear plugin properties cache (#1153) 2023-10-25 20:00:50 +02:00
plugin.lua feat(plugin): dev.path can now be a function (#1157) 2024-01-20 14:19:09 +01:00
util.lua style: show full trace when debug=true 2023-10-22 14:24:33 +02:00