Add sort (required nvim-treesitter)

This commit is contained in:
hrsh7th
2022-03-30 20:36:19 +09:00
parent 5e794cdf5b
commit dc3113a79f
6 changed files with 73 additions and 4 deletions

View File

@@ -338,10 +338,15 @@ autocmd.subscribe('CursorMoved', function()
end
end)
autocmd.subscribe('InsertEnter', function()
cmp.config.compare.locals:update()
end)
cmp.event:on('complete_done', function(evt)
if evt.entry then
cmp.config.compare.recently_used:add_entry(evt.entry)
end
cmp.config.compare.locals:update()
end)
cmp.event:on('confirm_done', function(evt)