Use <C-g> correctly
This commit is contained in:
@@ -16,7 +16,7 @@ Readme!
|
||||
Concept
|
||||
====================
|
||||
|
||||
- No flicker
|
||||
- No flicker (Sorry. Now, nvim-cmp requires `set lazyredraw` for reducing flickers.)
|
||||
- Works properly
|
||||
- Fully customizable via Lua functions
|
||||
- Fully supported LSP's Completion capabilities
|
||||
@@ -61,6 +61,7 @@ Plug 'hrsh7th/vim-vsnip'
|
||||
call plug#end()
|
||||
|
||||
set completeopt=menu,menuone,noselect
|
||||
set lazyredraw
|
||||
|
||||
lua <<EOF
|
||||
-- Setup nvim-cmp.
|
||||
|
||||
@@ -80,8 +80,7 @@ keymap.backspace = function(count)
|
||||
return ''
|
||||
end
|
||||
local keys = {}
|
||||
table.insert(keys, keymap.t('<C-g>U'))
|
||||
table.insert(keys, keymap.t(string.rep('<Left>', count)))
|
||||
table.insert(keys, keymap.t(string.rep('<C-g>U<Left>', count)))
|
||||
table.insert(keys, keymap.t(string.rep('<Del>', count)))
|
||||
return table.concat(keys, '')
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user