neovim: fix nvim-cmp conflict with the codecompanion plugin

This commit is contained in:
Dmitriy Pleshevskiy 2025-04-02 14:06:52 +03:00
parent 89408dca0b
commit e027efb8f6
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2
3 changed files with 10 additions and 10 deletions

8
flake.lock generated
View file

@ -302,11 +302,11 @@
]
},
"locked": {
"lastModified": 1735910408,
"narHash": "sha256-T2bMhG6Lc1gbhs4czCltGSPPmOUSYEHsIJfq9Lq0HaM=",
"lastModified": 1743591946,
"narHash": "sha256-nD2OqXHIcLmW+kZBB7y08wuEE5WFHSL6S6UN3PNOElM=",
"ref": "refs/heads/main",
"rev": "94549da249ff14b7e786da5abf9009050c70fc54",
"revCount": 96,
"rev": "d7afdf14eaa044777717fedbf89bf177d3a3688b",
"revCount": 97,
"type": "git",
"url": "https://git.pleshevski.ru/pleshevskiy/nixeovim"
},

View file

@ -1,4 +1,4 @@
{ lib, config, ... }:
{ lib, ... }:
let
inherit (lib.nix2lua) return lambda0 pipe1 require call;
@ -48,9 +48,9 @@ in
};
};
plugin.nvim-cmp.setupSettings = lib.mkIf config.plugins.nvim-cmp.enable {
sources = {
per_filetype.codecompanion = [ "codecompanion" ];
};
plugins.nvim-cmp.perFiletype.codecompanion = {
sources = [
{ name = "codecompanion"; }
];
};
}

View file

@ -1,7 +1,7 @@
{
imports = [
./ollama.nix
# ./codecompanion.nix
./codecompanion.nix
# ./spring-boot.nix
];
}