151 current 2024-03-07 19:42:29 24.05.20240306.9df3e30 6.6.19 *
This commit is contained in:
parent
381f9c1176
commit
2e1329c008
2 changed files with 42 additions and 40 deletions
|
|
@ -89,21 +89,23 @@
|
|||
}
|
||||
];
|
||||
|
||||
plugins.nvim-cmp = {
|
||||
plugins.cmp = {
|
||||
enable = true;
|
||||
autoEnableSources = true;
|
||||
sources = [
|
||||
{name = "nvim_lsp";}
|
||||
{name = "path";}
|
||||
{name = "buffer";}
|
||||
];
|
||||
snippet = {expand = "luasnip";};
|
||||
mappingPresets = ["insert"];
|
||||
mapping = {
|
||||
"<CR>" = "cmp.mapping.confirm({ select = true })";
|
||||
"<C-space>" = "cmp.mapping.complete()";
|
||||
"<C-b>" = "cmp.mapping.scroll_docs(-4)";
|
||||
"<C-f>" = "cmp.mapping.scroll_docs(4)";
|
||||
extraOptions = {
|
||||
sources = [
|
||||
{name = "nvim_lsp";}
|
||||
{name = "path";}
|
||||
{name = "buffer";}
|
||||
];
|
||||
snippet = {expand = "luasnip";};
|
||||
mappingPresets = ["insert"];
|
||||
mapping = {
|
||||
"<CR>" = "cmp.mapping.confirm({ select = true })";
|
||||
"<C-space>" = "cmp.mapping.complete()";
|
||||
"<C-b>" = "cmp.mapping.scroll_docs(-4)";
|
||||
"<C-f>" = "cmp.mapping.scroll_docs(4)";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue