Add locality sort (easy version)

This commit is contained in:
hrsh7th
2022-03-30 21:16:20 +09:00
parent 2de24d3e1c
commit a5024f916a
3 changed files with 48 additions and 0 deletions

View File

@@ -340,6 +340,7 @@ end)
autocmd.subscribe('InsertEnter', function()
cmp.config.compare.scopes:update()
cmp.config.compare.locality:update()
end)
cmp.event:on('complete_done', function(evt)
@@ -347,6 +348,7 @@ cmp.event:on('complete_done', function(evt)
cmp.config.compare.recently_used:add_entry(evt.entry)
end
cmp.config.compare.scopes:update()
cmp.config.compare.locality:update()
end)
cmp.event:on('confirm_done', function(evt)