diff options
author | Myles Mo <[email protected]> | 2022-06-23 14:02:15 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2022-06-23 10:32:15 +0430 |
commit | ecd344128734fe6b0772505e22922dea28338e26 (patch) | |
tree | 59b66d4aabdc7edd6f36f37edd9206bceded8f21 | |
parent | 16c0c862840b113374ed80e5e2ce56b59e03b298 (diff) |
fix(lualine): unique buf client names (#2683)
Co-authored-by: emxxjnm <emxxjnm@example>
-rw-r--r-- | lua/lvim/core/lualine/components.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lua/lvim/core/lualine/components.lua b/lua/lvim/core/lualine/components.lua index b89bbd36..49a8ff81 100644 --- a/lua/lvim/core/lualine/components.lua +++ b/lua/lvim/core/lualine/components.lua @@ -110,7 +110,8 @@ return { local supported_linters = linters.list_registered(buf_ft) 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, color = { gui = "bold" }, cond = conditions.hide_in_width, |