Compare commits

..

2 commits

Author SHA1 Message Date
raf
ad6e67034f
Merge branch 'main' into god-dammit-blink
Some checks failed
Check for typos in the source tree / check-typos (push) Has been cancelled
2025-03-18 19:37:38 +00:00
raf
71081d084b
completion/nvim-cmp: document default sources; allow override (#725)
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Validate flake & check formatting / Validate Flake (push) Waiting to run
Validate flake & check formatting / Formatting via Alejandra (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions
Check for typos in the source tree / check-typos (push) Waiting to run
2025-03-18 14:40:45 +00:00
2 changed files with 9 additions and 13 deletions

View file

@ -60,12 +60,6 @@ in {
enableSharedCmpSources = true; enableSharedCmpSources = true;
nvim-cmp = { nvim-cmp = {
sources = {
nvim-cmp = null;
buffer = "[Buffer]";
path = "[Path]";
};
sourcePlugins = ["cmp-buffer" "cmp-path"]; sourcePlugins = ["cmp-buffer" "cmp-path"];
setupOpts = { setupOpts = {

View file

@ -98,14 +98,16 @@ in {
sources = mkOption { sources = mkOption {
type = attrsOf (nullOr str); type = attrsOf (nullOr str);
default = {}; default = {
nvim-cmp = null;
buffer = "[Buffer]";
path = "[Path]";
};
example = {
nvim-cmp = null;
buffer = "[Buffer]";
};
description = "The list of sources used by nvim-cmp"; description = "The list of sources used by nvim-cmp";
example = literalExpression ''
{
nvim-cmp = null;
buffer = "[Buffer]";
}
'';
}; };
sourcePlugins = mkOption { sourcePlugins = mkOption {