1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

update nvim-compe settings

Use ESC to close the nvim-compe completion menu
This commit is contained in:
jdhao 2021-06-19 11:07:04 +08:00 committed by GitHub
parent 7c9c152368
commit 157ea91abb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,6 +150,6 @@ vim.o.completeopt = "menuone,noselect"
-- nvim-comple mappings
vim.api.nvim_set_keymap('i', '<C-Space>', 'compe#complete()', {expr = true})
vim.api.nvim_set_keymap('i', '<CR>', "compe#confirm('<CR>')", {expr = true})
vim.api.nvim_set_keymap('i', '<C-e>', "compe#close('<C-e>')", {expr = true})
vim.api.nvim_set_keymap('i', '<ESC>', "compe#close('<ESC>')", {expr = true})
vim.api.nvim_set_keymap('i', '<C-f>', "compe#scroll({'delta': +4})", {expr = true})
vim.api.nvim_set_keymap('i', '<C-d>', "compe#scroll({'delta': -4})", {expr = true})