plugins/cmp: refactor sources list & mkCmpSourcePlugin

List mkCmpSourcePlugin args directly in `sources/default.nix`,
similar to LSP's language-servers list.
This commit is contained in:
Matt Sturgeon 2024-06-29 09:58:18 +01:00
parent 3a8d4fee35
commit 17f4aa5556
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299
5 changed files with 218 additions and 93 deletions

View file

@ -13,8 +13,6 @@ in
meta.maintainers = [ maintainers.GaetanLepage ];
options.plugins.codeium-nvim = helpers.neovim-plugin.extraOptionsOptions // {
package = helpers.mkPluginPackageOption "codeium.nvim" pkgs.vimPlugins.codeium-nvim;
configPath = helpers.defaultNullOpts.mkStr {
__raw = "vim.fn.stdpath('cache') .. '/codeium/config.json'";
} "The path to the config file, used to store the API key.";