-
Notifications
You must be signed in to change notification settings - Fork 433
Description
FAQ
- I have checked the FAQ and it didn't resolve my problem.
Announcement
- I have checked Breaking change announcement.
Minimal reproducible full config
local dein_dir = vim.fn.expand('~/.cache/dein')
local dein_core = vim.fs.joinpath(dein_dir, 'repos/github.com/Shougo/dein.vim')
if vim.fn.isdirectory(dein_core) == 0 then
vim.system({ 'git', 'clone', 'https://github.com/Shougo/dein.vim', dein_core }):wait()
end
vim.opt.runtimepath:append(dein_core)
local dein = require('dein')
dein.begin(dein_dir)
dein.add('hrsh7th/nvim-cmp', {
on_event = {
'InsertEnter',
},
hook_post_source = function ()
require('cmp').setup({})
end,
})
dein.add('tversteeg/registers.nvim', {
on_map = {
nv = '"',
i = '<C-r>'
},
hook_post_source = function ()
require('registers').setup({})
end
})
dein.add('hrsh7th/cmp-buffer', {
on_source = {
'nvim-cmp',
},
})
-- dein.add('hrsh7th/cmp-path', {
-- on_source = {
-- 'nvim-cmp',
-- },
-- })
if dein.check_install() then
dein.install()
end
dein.end_()
Description
I make registers.nvim load (and then its window opens) when pressing <C-r> in insert mode. When pressing <C-r>, call v:lua.cmp.utils.feedkeys.call.run(2) is inserted into a current buffer but the window isn't open. The plugin is loaded.
This issue doesn't appear using registers.nvim and nvim-cmp only. I checked to see which plugins affect this issue, it seems to be caused by using cmp-buffer or cmp-path together. In addition according to git bisect, it seems that this issue has appeared since e55033f`.
Plugins:
Shougo/dein.vim
tversteeg/registers.nvim
Steps to reproduce
- Open nvim with minimal config
- Start insert mode
- Press
<C-r>
Expected behavior
Theregisteres.nvim window opens.
Actual behavior
all v:lua.cmp.utils.feedkeys.call.run(2) is inserted into a current buffer and theregisteres.nvim window doesn't open (I don't know why it is call in the config I usually use but all in the minimal config).
Additional context
Lazy-loading when entering insert mode (InsertEnter) instead of pressing <C-r> stops this issue from appearing.