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