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

30 lines
455 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-14 12:12:41 +00:00
then [cmp-nvim-lsp]
else []
)
++ (
if config.isDesktop && pkgs.system == "x86_64-linux"
then [cmp-tabnine]
else []
);
2023-04-13 08:30:16 +00:00
extraLuaModules = ["config.cmp"];
}