blink-cmp-git: sources.default replaces all defaults instead of appending
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 0
- Forks
- 0
- Avg merge
- 2h 10m
- Merged PRs (30d)
- 8
Description
In nvim/lua/plugins/blink-cmp-git.lua, the spec sets:
```lua
sources = { default = { "git" } }
```
This replaces blink.cmp's entire default source list rather than appending the git source to it. Since enabled gates the git source to specific filetypes, in practice only the git source exists in the default list — any lsp, buffer, or snippets sources added by LazyVim upstream could be silently dropped depending on merge order.
The fix is to use vim.list_extend or a per-filetype override instead:
```lua
opts = function(_, opts)
opts.sources = opts.sources or {}
opts.sources.providers = opts.sources.providers or {}
opts.sources.providers.git = { ... }
-- append rather than replace
end
```
Noted during review of PR #52.
This was opened by a bot. Please ping @seabbs for any questions.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in nvim/lua/plugins/blink-cmp-git.lua and inspect how the blink.cmp sources configuration is merged. Check the relevant LazyVim and blink.cmp defaults before changing the configuration. Done means the git source is available where enabled without replacing existing lsp, buffer, or snippets sources.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, neovim
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100