feat(nvim): allow disabling cmp sources

Add a new command "CmpToggle" and functions to turn off/on a cmp source.
This commit is contained in:
Moritz Böhme 2023-10-26 09:47:21 +02:00
parent 58c8efa332
commit 2c2824a395
2 changed files with 97 additions and 0 deletions

View file

@ -74,6 +74,9 @@ with builtins;
}
{
plugin = nvim-cmp;
keys = [
{ key = "<leader>tc"; cmd = "<cmd>CmpToggle<cr>"; desc = "Toggle Cmp sources"; }
];
conf = readFile ./lua/nvim-cmp.lua;
event = [ "InsertEnter" ];
dependencies = [