fix(lualine): unique buf client names (#2683)

Co-authored-by: emxxjnm <emxxjnm@example>
This commit is contained in:
Myles Mo 2022-06-23 14:02:15 +08:00 committed by GitHub
parent 16c0c86284
commit ecd3441287
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

@ -110,7 +110,8 @@ return {
local supported_linters = linters.list_registered(buf_ft) local supported_linters = linters.list_registered(buf_ft)
vim.list_extend(buf_client_names, supported_linters) vim.list_extend(buf_client_names, supported_linters)
return "[" .. table.concat(buf_client_names, ", ") .. "]" local unique_client_names = vim.fn.uniq(buf_client_names)
return "[" .. table.concat(unique_client_names, ", ") .. "]"
end, end,
color = { gui = "bold" }, color = { gui = "bold" },
cond = conditions.hide_in_width, cond = conditions.hide_in_width,