astrocommunity icon indicating copy to clipboard operation
astrocommunity copied to clipboard

blink-cmp-git no issue, pull request or user completion

Open practicalli-johnny opened this issue 8 months ago • 1 comments

Checklist

  • [x] I have searched through the AstroNvim documentation
  • [x] I have searched through the existing issues of this project
  • [x] I have searched the existing issues of plugins related to this issue
  • [x] I can replicate the bug with the minimal repro.lua provided below

Neovim version (nvim -v)

0.11.0

Operating system/version

Debian Linux

Terminal/GUI

kitty

Describe the bug

: shows git commit in a completion popup

# does not show github issues for this repository in a completion popup

@ does not show github users for this repository in a completion popup

Steps to Reproduce

  1. Install GitHub CLI https://cli.github.com/
  2. Authorise with your GitHub account git auth login
  3. Clone Astronvim template
  4. Edit `lua/plugins/community.lua and import completion.blink-cmp-git and git.neogit
  5. Lazy update pa
  6. Restart neovim
  7. Open a file under git control and make a minor change
  8. Open neogit status buffer gnt
  9. s to stage the change, cc to open the commit message
  10. # to trigger issue completiono completion is shown including GitHub issues

Expected behavior

Typing a # in the commit message buffer or in a markdown file should open a completion buffer with the issues from the project.

Screenshots

No response

Additional Context

May or may not be related to https://github.com/AstroNvim/astrocommunity/issues/1397

Minimal configuration

-- save as repro.lua
-- run with nvim -u repro.lua
-- DO NOT change the paths
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs { "config", "data", "state", "runtime", "cache" } do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  -- stylua: ignore
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })
end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)

-- install plugins
local plugins = {
  { "AstroNvim/AstroNvim", import = "astronvim.plugins" },
  { "AstroNvim/astrocommunity" },
  { import = "astrocommunity.completion.blink-cmp-git" },

  -- add any other plugins/customizations here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

-- add anything else here (autocommands, vim.filetype, etc.)

practicalli-johnny avatar Apr 26 '25 16:04 practicalli-johnny

Could you fill out the repro.lua, and I will take a look today. :) (unless ofc you do it tomorrow)

Uzaaft avatar Apr 26 '25 16:04 Uzaaft

Updated the blink-cmp-git plugin to the repro.lua added to this issue (after ticking the repro.lua checkbox)

Running nvim -u repro.lua gives the same results as with my own configuration, i.e. local commits show in the popup completion when : is pressed, but # does not show github issues/prs and @ does not show github account names.

It would be useful to know if others experience the same issue with AstroNvim, or not. This would help with reporting upstream.

Thank you

practicalli-johnny avatar May 02 '25 13:05 practicalli-johnny

Can reproduce. Not sure if this is an us or a upstream issue, but this needs to be looked at.

Uzaaft avatar May 11 '25 10:05 Uzaaft

Tested this now and it seems to work.

Uzaaft avatar Aug 30 '25 12:08 Uzaaft