show the actual command (#1191)

This commit is contained in:
Abouzar Parvan 2021-07-31 20:12:12 +04:30 committed by GitHub
parent d700a706b1
commit c4bff33745
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ function M.get_registered_providers_by_filetype(ft)
local matches = {} local matches = {}
for _, provider in pairs(M.requested_providers) do for _, provider in pairs(M.requested_providers) do
if vim.tbl_contains(provider.filetypes, ft) then if vim.tbl_contains(provider.filetypes, ft) then
table.insert(matches, provider.name) table.insert(matches, provider._opts.command)
end end
end end