cmp
URL: https://github.com/hrsh7th/nvim-cmp/
Maintainers: Gaetan Lepage
Completion Source Installation
If plugins.cmp.autoEnableSources
is true
Nixivm will automatically enable the corresponding source
plugins. This is the default behavior, but will work only when this option is set to a list.
If you use a raw lua string or set plugins.cmp.autoEnableSources
to false
, you will need to explicitly enable the relevant source plugins in
your nixvim configuration.
With auto-enabled sources
plugins.cmp = {
autoEnableSources = true;
settings.sources = [
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "buffer"; }
];
};
Without auto-enabled sources
plugins = {
cmp = {
autoEnableSources = false;
settings.sources = [
{ name = "nvim_lsp"; }
{ name = "path"; }
{ name = "buffer"; }
];
};
cmp-nvim-lsp.enable = true;
cmp-path.enable = true;
cmp-buffer.enable = true;
};
plugins.cmp.enable
Whether to enable nvim-cmp.
Type: boolean
Default:
false
Example:
true
Declared by:
plugins.cmp.package
The nvim-cmp package to use.
Type: package
Default:
pkgs.vimPlugins.nvim-cmp
Declared by:
plugins.cmp.autoEnableSources
Scans the sources array and enable the corresponding plugins if they are known to nixvim.
Type: boolean
Default:
true
Example:
false
Declared by: