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": { "locked": {
"lastModified": 1735910408, "lastModified": 1743591946,
"narHash": "sha256-T2bMhG6Lc1gbhs4czCltGSPPmOUSYEHsIJfq9Lq0HaM=", "narHash": "sha256-nD2OqXHIcLmW+kZBB7y08wuEE5WFHSL6S6UN3PNOElM=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "94549da249ff14b7e786da5abf9009050c70fc54", "rev": "d7afdf14eaa044777717fedbf89bf177d3a3688b",
"revCount": 96, "revCount": 97,
"type": "git", "type": "git",
"url": "https://git.pleshevski.ru/pleshevskiy/nixeovim" "url": "https://git.pleshevski.ru/pleshevskiy/nixeovim"
}, },

View file

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

View file

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