nvim-lsp: added nvim-cmp completion capabilities (#158)

Co-authored-by: Pedro Alves <pta2002@pta2002.com>
This commit is contained in:
Gaétan Lepage 2023-02-20 17:32:05 +01:00 committed by GitHub
parent 60faa3cf93
commit bb3721e92d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 2 deletions

View file

@ -453,6 +453,14 @@ in {
})
known_source_names);
in
mkIf cfg.auto_enable_sources attrs_enabled;
mkMerge [
(mkIf cfg.auto_enable_sources attrs_enabled)
(mkIf (elem "nvim_lsp" found_sources)
{
lsp.capabilities = ''
capabilities = require('cmp_nvim_lsp').default_capabilities()
'';
})
];
};
}