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

2
flake.lock generated
View file

@ -315,7 +315,7 @@
}, },
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-0SJy0es1cOrwO73ew9nPJdZfjHFOPo3v/zflUVZZASE=", "narHash": "sha256-1L5aXNQndyNRWsIE5GzvmHNKT7UWX4BRSPitnvuUdp0=",
"path": "./nixvim", "path": "./nixvim",
"type": "path" "type": "path"
}, },

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 # language support & lsp
./lsp.nix ./lsp.nix
./nix.nix ./nix.nix
# autocompletion
./cmp.nix
]; ];
} }