neovim: Make cmp sources work

This commit is contained in:
Quentin Boyer 2024-11-24 23:33:14 +01:00
parent 110699cff5
commit 17c7b15981
2 changed files with 24 additions and 23 deletions

View file

@ -29,27 +29,28 @@
"fallback"
];
};
completion.enabled_providers = [
"lsp"
"buffer"
"path"
"git"
"calc"
"omni"
];
# Does not seem to work
providers = {
git = {
name = "git";
module = "blink.compat.source";
};
calc = {
name = "calc";
module = "blink.compat.source";
};
omni = {
name = "omni";
module = "blink.compat.source";
sources = {
completion.enabled_providers = [
"lsp"
"buffer"
"path"
"git"
"calc"
"omni"
];
providers = {
git = {
name = "git";
module = "blink.compat.source";
};
calc = {
name = "calc";
module = "blink.compat.source";
};
omni = {
name = "omni";
module = "blink.compat.source";
};
};
};
};
@ -63,6 +64,4 @@
plugins.cmp-omni.enable = true;
plugins.cmp-git.enable = true;
plugins.cmp-calc.enable = true;
performance.combinePlugins.standalonePlugins = [ "nvim-cmp" ];
}

View file

@ -42,6 +42,8 @@
src = inputs."blink.compat";
version = inputs."blink.compat".shortRev;
};
nvim-cmp = final'.blink-compat;
}
);
}