nixvim: basic autocompletion

This commit is contained in:
Khaïs COLIN 2024-07-27 16:14:49 +02:00
parent 9e485bf5ff
commit 8b9a12e428
3 changed files with 17 additions and 1 deletions

13
nixvim/config/cmp.nix Normal file
View file

@ -0,0 +1,13 @@
{
plugins.cmp = {
enable = true;
autoEnableSources = true;
settings = {
sources = [
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "buffer"; }
];
};
};
}

View file

@ -12,5 +12,8 @@
# language support & lsp
./lsp.nix
./nix.nix
# autocompletion
./cmp.nix
];
}