lazy.nvim/lua/lazy
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
..
core feat(plugin): dev.path can now be a function (#1157) 2024-01-20 14:19:09 +01:00
manage fix(fs): error when plugin directory to delete is not a valid directory 2024-01-19 16:09:28 +01:00
view fix(ui): properly highlight breaking change commit scope (#1160) 2023-11-04 11:05:02 +01:00
docs.lua perf: new file-based cache that ensures correct rtp order (#532) 2023-02-13 12:01:56 +01:00
example.lua docs: updated docs. Fixes #667 2023-03-18 08:57:20 +01:00
health.lua style: sort requires 2023-10-09 11:25:42 +02:00
help.lua fix(help): sort readme tags case sensitive. Fixes #67 2023-09-28 12:28:07 +02:00
init.lua fix(profiling): ensure proper traces in case of require errors 2023-10-09 23:42:07 +02:00
state.lua style: sort requires 2023-10-09 11:25:42 +02:00
stats.lua fix(stats): corrected typo in cputime() for Linux (#916) 2023-07-06 16:19:08 +02:00
status.lua feat(ui): added statusline component to show pending updates 2022-12-05 20:49:45 +01:00
types.lua feat(ui): check pinned packages that can't be updated (#1139) 2023-10-23 07:52:54 +02:00
util.lua fix(help): sort readme tags case sensitive. Fixes #67 2023-09-28 12:28:07 +02:00