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:
parent
58c8efa332
commit
2c2824a395
2 changed files with 97 additions and 0 deletions
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue