plugins/blink-cmp-git: init

This commit is contained in:
Austin Horstman 2025-02-05 12:27:36 -06:00 committed by GitHub
parent 7d975e3598
commit 2061a9ad95
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,50 @@
{ lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "blink-cmp-git";
package = "blink-cmp-git";
maintainers = [ lib.maintainers.khaneliman ];
description = ''
This plugin should be configured through blink-cmp's `sources.providers` settings.
For example:
```nix
plugins.blink-cmp = {
enable = true;
settings.sources.providers = {
git = {
module = "blink-cmp-git";
name = "git";
score_offset = 100;
opts = {
commit = { };
git_centers = { git_hub = { }; };
};
};
};
};
```
And then you can add it to blink-cmp's `sources.default` option:
```nix
plugins.blink-cmp = {
enable = true;
settings.sources.default = [
"lsp"
"path"
"luasnip"
"buffer"
"git"
];
};
```
'';
# Configured through blink-cmp
callSetup = false;
hasLuaConfig = false;
hasSettings = false;
}

View file

@ -0,0 +1,11 @@
{
empty = {
plugins.blink-cmp-git.enable = true;
};
defaults = {
plugins.blink-cmp-git = {
enable = true;
};
};
}