{ plugins.cmp = { autoEnableSources = true; settings = { sources = [ # LSP source { name = "nvim_lsp"; } # For path completion { name = "path"; } # For buffer completion { name = "buffer"; keyword_length = 5; } # For command line completion {name = "cmdline";} ]; mapping = { # means enter "" = "cmp.mapping.confirm({ select = true })"; "" = "cmp.mapping.select_next_item()"; "" = "cmp.mapping.select_prev_item()"; "" = "cmp.mapping.close()"; }; }; }; }