feat: sorting popup autocomplete items and initial builtin items (#2518)

This commit is contained in:
Juan Barrios
2023-05-24 11:03:07 +02:00
committed by GitHub
parent 233cd6ad0d
commit 8dd1cb2771
2 changed files with 14 additions and 2 deletions

View File

@@ -62,6 +62,10 @@ internal.builtin = function(opts)
end
end
table.sort(objs, function(a, b)
return a.text < b.text
end)
opts.bufnr = vim.api.nvim_get_current_buf()
opts.winnr = vim.api.nvim_get_current_win()
pickers