Skip to content

Commit

Permalink
update cmp config
Browse files Browse the repository at this point in the history
Signed-off-by: tracyone <[email protected]>
  • Loading branch information
tracyone committed Dec 14, 2021
1 parent 417567f commit b324b7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lua/nvim_cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ cmp.setup({
end,
},
mapping = {
['<C-d>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(),
['<C-u>'] = cmp.mapping.scroll_docs(-4),
['<C-d>'] = cmp.mapping.scroll_docs(4),
['<C-t>'] = cmp.mapping.complete(),
['<Tab>'] = cmp.mapping(cmp.mapping.select_next_item(), { 'i', 's' }),
['<C-e>'] = cmp.mapping.close(),
['<CR>'] = cmp.mapping.confirm({ select = true }),
Expand All @@ -30,6 +30,7 @@ cmp.setup({

{ name = 'nvim_cpp' },
{ name = 'ultisnips' },
{ name = 'calc' },

{ name = 'buffer' },
}
Expand Down
1 change: 1 addition & 0 deletions rc/complete.vim
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ elseif g:complete_plugin_type.cur_val ==# 'nvim-cmp' && te#env#IsNvim() >= 0.5
Plug 'hrsh7th/cmp-cmdline'
Plug 'quangnguyen30192/cmp-nvim-ultisnips', {'branch': 'main' }
Plug 'octaltree/cmp-look'
Plug 'hrsh7th/cmp-calc'
"Plug 'onsails/lspkind-nvim'
"Plug 'tamago324/cmp-zsh',{'for':['bash','zsh'], 'branch': 'main'}

Expand Down

0 comments on commit b324b7f

Please sign in to comment.