mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-01 12:54:30 +02:00
plugins/nvim-cmp: refactoring (init filetype and cmdline options)
This commit is contained in:
parent
22b587f3dc
commit
a61c8fbc3d
26 changed files with 1166 additions and 948 deletions
|
@ -122,7 +122,7 @@ with lib; let
|
|||
nvimCmp = helpers.mkNullOrOption types.bool ''
|
||||
Set to false to disable completion.
|
||||
|
||||
Default: `true` if `nvim-cmp` is enabled.
|
||||
Default: `true` if `cmp` is enabled.
|
||||
'';
|
||||
|
||||
minChars = helpers.defaultNullOpts.mkUnsignedInt 2 ''
|
||||
|
@ -500,10 +500,10 @@ in {
|
|||
assertion = let
|
||||
nvimCmpEnabled = isBool cfg.completion.nvimCmp && cfg.completion.nvimCmp;
|
||||
in
|
||||
nvimCmpEnabled -> config.plugins.nvim-cmp.enable;
|
||||
nvimCmpEnabled -> config.plugins.cmp.enable;
|
||||
message = ''
|
||||
Nixvim (plugins.obsidian): You have enabled `completion.nvimCmp` but `plugins.nvim-cmp.enable` is `false`.
|
||||
You need to enable `nvim-cmp` to use this setting.
|
||||
Nixvim (plugins.obsidian): You have enabled `completion.nvimCmp` but `plugins.cmp.enable` is `false`.
|
||||
You need to enable `cmp` to use this setting.
|
||||
'';
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue