|
@@ -210,13 +210,15 @@ local get_lsp_client = function(msg)
|
|
|
local lsps = ""
|
|
|
for _, client in ipairs(clients) do
|
|
|
local filetypes = client.config.filetypes
|
|
|
- if filetypes and vim.fn.index(filetypes, buf_ft) ~= 1 then
|
|
|
+ if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then
|
|
|
-- print(client.name)
|
|
|
if lsps == "" then
|
|
|
-- print("first", lsps)
|
|
|
lsps = client.name
|
|
|
else
|
|
|
- lsps = lsps .. ", " .. client.name
|
|
|
+ if not string.find(lsps, client.name) then
|
|
|
+ lsps = lsps .. ", " .. client.name
|
|
|
+ end
|
|
|
-- print("more", lsps)
|
|
|
end
|
|
|
end
|