nixvim: basic autocompletion
This commit is contained in:
parent
9e485bf5ff
commit
8b9a12e428
3 changed files with 17 additions and 1 deletions
2
flake.lock
generated
2
flake.lock
generated
|
|
@ -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
13
nixvim/config/cmp.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
plugins.cmp = {
|
||||||
|
enable = true;
|
||||||
|
autoEnableSources = true;
|
||||||
|
settings = {
|
||||||
|
sources = [
|
||||||
|
{ name = "nvim_lsp"; }
|
||||||
|
{ name = "path"; }
|
||||||
|
{ name = "buffer"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
@ -12,5 +12,8 @@
|
||||||
# language support & lsp
|
# language support & lsp
|
||||||
./lsp.nix
|
./lsp.nix
|
||||||
./nix.nix
|
./nix.nix
|
||||||
|
|
||||||
|
# autocompletion
|
||||||
|
./cmp.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue