Adjust cmp settings
This commit is contained in:
parent
039721c1a0
commit
13e7078dde
1 changed files with 18 additions and 6 deletions
|
@ -118,12 +118,24 @@ in
|
|||
|
||||
cmp = {
|
||||
enable = true;
|
||||
settings.sources = [
|
||||
{ name = "nvim-lsp"; }
|
||||
{ name = "vim-lsp-signature-help"; }
|
||||
{ name = "vim-vsnip"; }
|
||||
{ name = "treesitter"; }
|
||||
];
|
||||
settings = {
|
||||
sources = [
|
||||
{ name = "nvim-lsp"; }
|
||||
{ name = "buffer"; }
|
||||
{ name = "vim-lsp-signature-help"; }
|
||||
{ name = "vim-vsnip"; }
|
||||
{ name = "treesitter"; }
|
||||
];
|
||||
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'})";
|
||||
};
|
||||
};
|
||||
};
|
||||
friendly-snippets.enable = true;
|
||||
nvim-autopairs.enable = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue