cmp autocompletion, how to trigger? #928
-
I tried these settings, one by one but that doesn't seem to help either nvim-cmp.mapping = {
"<C-Space>" = "cmp.mapping.complete()";
"<C-d>" = "cmp.mapping.scroll_docs(-4)";
"<C-e>" = "cmp.mapping.close()";
"<C-f>" = "cmp.mapping.scroll_docs(4)";
"<CR>" = "cmp.mapping.confirm({ select = true })";
"<S-Tab>" = {
action = "cmp.mapping.select_prev_item()";
modes = [
"i"
"s"
];
};
"<Tab>" = {
action = "cmp.mapping.select_next_item()";
modes = [
"i"
"s"
];
};
};
nvim-cmp.completion.autocomplete = [ "TextChanged" ]; Hitting Control+Space should have at least make it pop up, but again nothing. I'm feeling a bit dumb. I have loads of sources configured. And those which make sense for the file-type show up when I type My cmp sources cmp-calc.enable = true;
cmp-clippy.enable = true;
cmp-cmdline.enable = true;
cmp-fuzzy-buffer.enable = true;
cmp-fuzzy-path.enable = true;
cmp-vim-lsp.enable = true;
cmp-nvim-lsp.enable = true;
cmp-path.enable = true;
copilot-cmp.enable = true;
copilot-lua.enable = true;
copilot-lua.panel.enabled = false;
copilot-lua.suggestion.enabled = false; |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 15 replies
-
This is not how you should set up your sources. Instead, you should list them in |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
It's kind of the other way around: you tell what sources you want and we (nixvim) automatically enable the relevant plugin.