mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-12 18:24:35 +02:00
plugins/nvim-cmp: do not pass in enabled = true (#324)
Since this means cmp is active in prompts, e.g. telescope https://www.reddit.com/r/neovim/comments/vtw4vl/disable_nvimcmp_in_telescopes_buffer/
This commit is contained in:
parent
d7967f3ffd
commit
5d2dbc40a6
1 changed files with 7 additions and 1 deletions
|
@ -463,7 +463,13 @@ in {
|
|||
|
||||
config = let
|
||||
options = {
|
||||
enabled = cfg.enable;
|
||||
# The upstream default value (which is a function) should not be overwritten.
|
||||
# https://www.reddit.com/r/neovim/comments/vtw4vl/comment/if9zfdf/?utm_source=share&utm_medium=web2x&context=3
|
||||
enabled =
|
||||
if cfg.enable
|
||||
then null
|
||||
else false;
|
||||
|
||||
performance = cfg.performance;
|
||||
preselect =
|
||||
helpers.ifNonNull' cfg.preselect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue