No requires lazyredraw

This commit is contained in:
hrsh7th
2021-10-12 11:11:08 +09:00
parent 30ed4e43a6
commit 7a36a31331
2 changed files with 4 additions and 4 deletions

View File

@@ -16,7 +16,7 @@ Readme!
Concept
====================
- No flicker (Sorry. Now, nvim-cmp requires `set lazyredraw` for reducing flickers.)
- No flicker
- Works properly
- Fully customizable via Lua functions
- Fully supported LSP's Completion capabilities
@@ -61,7 +61,6 @@ Plug 'hrsh7th/vim-vsnip'
call plug#end()
set completeopt=menu,menuone,noselect
set lazyredraw
lua <<EOF
-- Setup nvim-cmp.

View File

@@ -80,8 +80,9 @@ keymap.backspace = function(count)
return ''
end
local keys = {}
table.insert(keys, keymap.t(string.rep('<C-g>U<Left>', count)))
table.insert(keys, keymap.t(string.rep('<Del>', count)))
table.insert(keys, keymap.t('<Cmd>set backspace=<CR>'))
table.insert(keys, keymap.t(string.rep('<BS>', count)))
table.insert(keys, keymap.t(('<Cmd>set backspace=%s<CR>'):format(vim.o.backspace)))
return table.concat(keys, '')
end