add mappings for cmp
This commit is contained in:
parent
3a3d4f847b
commit
3bfc56bf2a
1 changed files with 16 additions and 5 deletions
|
@ -3,11 +3,22 @@
|
||||||
plugins = {
|
plugins = {
|
||||||
cmp = {
|
cmp = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings.sources = [
|
settings = {
|
||||||
{ name = "nvim_lsp"; }
|
sources = [
|
||||||
{ name = "buffer"; }
|
{ name = "nvim_lsp"; }
|
||||||
{ name = "path"; }
|
{ name = "buffer"; }
|
||||||
];
|
{ name = "path"; }
|
||||||
|
];
|
||||||
|
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>" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})";
|
||||||
|
"<Tab>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
copilot-lua.enable = true;
|
copilot-lua.enable = true;
|
||||||
copilot-cmp.enable = true;
|
copilot-cmp.enable = true;
|
||||||
|
|
Loading…
Add table
Reference in a new issue