try random things from the internet
This commit is contained in:
@@ -56,17 +56,24 @@
|
|||||||
settings = {
|
settings = {
|
||||||
sources = [
|
sources = [
|
||||||
{ name = "nvim_lsp"; }
|
{ name = "nvim_lsp"; }
|
||||||
{ name = "path"; }
|
# { name = "path"; }
|
||||||
# { name = "buffer"; }
|
# { name = "buffer"; }
|
||||||
{ name = "luasnip"; }
|
# { name = "luasnip"; }
|
||||||
# { name = "cmdline"; }
|
# { name = "cmdline"; }
|
||||||
];
|
];
|
||||||
|
|
||||||
|
completion = {
|
||||||
|
completeopt = "menu,menuone,noinsert";
|
||||||
|
};
|
||||||
|
|
||||||
mapping = {
|
mapping = {
|
||||||
"[ '<C-n>' ]" = "cmp.mapping.select_next_item()";
|
"[ '<C-n>' ]" = "cmp.mapping.select_next_item()";
|
||||||
"[ '<C-p>' ]" = "cmp.mapping.select_prev_item()";
|
"[ '<C-p>' ]" = "cmp.mapping.select_prev_item()";
|
||||||
"[ '<C-y>' ]" = "cmp.mapping.complete()";
|
"[ '<C-y>' ]" = "cmp.mapping.confirm({ select = true })";
|
||||||
|
"[ '<C-Space>' ]" = "cmp.mapping.complete()";
|
||||||
"[ '<C-e>' ]" = "cmp.mapping.abort()";
|
"[ '<C-e>' ]" = "cmp.mapping.abort()";
|
||||||
|
"[ '<C-b>' ]" = "cmp.mapping.scroll_docs(-4)";
|
||||||
|
"[ '<C-f>' ]" = "cmp.mapping.scroll_docs(4)";
|
||||||
};
|
};
|
||||||
|
|
||||||
snippet.expand = ''
|
snippet.expand = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user