mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
nvim-lsp: added nvim-cmp completion capabilities (#158)
Co-authored-by: Pedro Alves <pta2002@pta2002.com>
This commit is contained in:
parent
60faa3cf93
commit
bb3721e92d
3 changed files with 26 additions and 2 deletions
|
@ -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()
|
||||
'';
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue