Use <C-g> correctly

This commit is contained in:
hrsh7th
2021-10-12 01:53:27 +09:00
parent fe2b245ea1
commit 30ed4e43a6
2 changed files with 3 additions and 3 deletions

View File

@@ -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.

View File

@@ -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