nixos-config/config/programs/vim/modules/lsp/cmp.nix

25 lines
354 B
Nix
Raw Normal View History

{
pkgs,
config,
lib,
...
}: {
output.plugins = with pkgs.vimPlugins;
[
nvim-cmp
cmp-cmdline
cmp-path
cmp-buffer
cmp_luasnip
cmp-git
2023-04-13 18:35:12 +00:00
cmp-omni
2023-04-13 19:00:05 +00:00
lspkind-nvim
]
++ (
if config.isDesktop
2023-04-13 18:35:12 +00:00
then [cmp-nvim-lsp cmp-tabnine]
else []
);
2023-04-13 08:30:16 +00:00
extraLuaModules = ["config.cmp"];
}