From 4eb3e932e5006c925069c2386c0c6da6bb5baccb Mon Sep 17 00:00:00 2001 From: Darkhan Date: Sat, 26 Aug 2023 15:47:18 +0100 Subject: [PATCH 1/4] Make commit pattern more accurate (#973) Sometimes when hovering over updated plugins and triggering `diff` with `d` key, I get an empty `diff` view. I traced the problem to a very generic `commit_pattern` which currently matches any alphanumeric sequence of 7 characters surrounded by "word boundary" / frontier patterns. I adjusted the regex to match only `[a-z0-9] * 7` which should make this issue appear less. I am keeping the older frontier sets `%f[%w]` and `%f[%W]` because if I switch to `%f[a-f0-9]` and `%f[^0-9a-f]` I will be matching strings like `zzz1234567xxx`. --- lua/lazy/view/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/lazy/view/init.lua b/lua/lazy/view/init.lua index 93611e2..d179f11 100644 --- a/lua/lazy/view/init.lua +++ b/lua/lazy/view/init.lua @@ -159,7 +159,7 @@ function M:open_url(path) end function M:setup_patterns() - local commit_pattern = "%f[%w](" .. string.rep("%w", 7) .. ")%f[%W]" + local commit_pattern = "%f[%w](" .. string.rep("[a-f0-9]", 7) .. ")%f[%W]" self:on_pattern(ViewConfig.keys.hover, { [commit_pattern] = function(hash) self:diff({ commit = hash, browser = true }) From 0e9c3934ab5db59156997f78a5186ed20e7568cb Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 26 Aug 2023 14:47:56 +0000 Subject: [PATCH 2/4] chore(build): auto-generate vimdoc --- doc/lazy.nvim.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/lazy.nvim.txt b/doc/lazy.nvim.txt index 5a22178..aa730bb 100644 --- a/doc/lazy.nvim.txt +++ b/doc/lazy.nvim.txt @@ -1,4 +1,4 @@ -*lazy.nvim.txt* For Neovim >= 0.8.0 Last change: 2023 July 30 +*lazy.nvim.txt* For Neovim >= 0.8.0 Last change: 2023 August 26 ============================================================================== Table of Contents *lazy.nvim-table-of-contents* From d179a17fa1552de9d494b72243497dc86f3325f9 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 26 Aug 2023 17:21:48 +0200 Subject: [PATCH 3/4] docs: added link to pckr.nvim --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index fb2371f..62de315 100644 --- a/README.md +++ b/README.md @@ -809,6 +809,7 @@ This makes it easier for users, so they no longer need to specify a `build` comm ## 📦 Other Neovim Plugin Managers in Lua +- [pckr.nvim](https://github.com/lewis6991/pckr.nvim) - [packer.nvim](https://github.com/wbthomason/packer.nvim) - [paq-nvim](https://github.com/savq/paq-nvim) - [neopm](https://github.com/ii14/neopm) From 2a9354c7d2368d78cbd5575a51a2af5bd8a6ad01 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 26 Aug 2023 15:22:34 +0000 Subject: [PATCH 4/4] chore(build): auto-generate vimdoc --- doc/lazy.nvim.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/lazy.nvim.txt b/doc/lazy.nvim.txt index aa730bb..a045ce6 100644 --- a/doc/lazy.nvim.txt +++ b/doc/lazy.nvim.txt @@ -961,6 +961,7 @@ command. OTHER NEOVIM PLUGIN MANAGERS IN LUA*lazy.nvim-lazy.nvim-other-neovim-plugin-managers-in-lua* +- pckr.nvim - packer.nvim - paq-nvim - neopm