Merge pull request #884 from horriblename/cmp-sources-normal-prio

cmp: use normal priority for default of `sources`
This commit is contained in:
raf 2025-05-06 14:17:27 +00:00 committed by GitHub
commit d3c7f7125c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 2 deletions

View file

@ -60,6 +60,11 @@ 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,11 +98,15 @@ in {
sources = mkOption { sources = mkOption {
type = attrsOf (nullOr str); type = attrsOf (nullOr str);
default = { defaultText = literalMD ''
These sources are included by default:
```nix
nvim-cmp = null; nvim-cmp = null;
buffer = "[Buffer]"; buffer = "[Buffer]";
path = "[Path]"; path = "[Path]";
}; ```
'';
example = { example = {
nvim-cmp = null; nvim-cmp = null;
buffer = "[Buffer]"; buffer = "[Buffer]";