diff options
author | kylo252 <[email protected]> | 2021-10-31 16:23:44 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-10-31 16:23:44 +0100 |
commit | e8693406babee724dd51293dc6dad10931dbef45 (patch) | |
tree | cd3abce7b226f68d34126b88378f4936384a14e2 /lua/lvim/core/info.lua | |
parent | 7a2a5fc810e6eaef185d9b0023b598a83c29d93e (diff) |
perf(lsp): use the new upstream API for filetypes (#1836)
Diffstat (limited to 'lua/lvim/core/info.lua')
-rw-r--r-- | lua/lvim/core/info.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lua/lvim/core/info.lua b/lua/lvim/core/info.lua index 5707cc30..fc87691e 100644 --- a/lua/lvim/core/info.lua +++ b/lua/lvim/core/info.lua @@ -61,11 +61,13 @@ local function make_client_info(client) local client_enabled_caps = lsp_utils.get_client_capabilities(client.id) local name = client.name local id = client.id + local filetypes = lsp_utils.get_supported_filetypes(name) local document_formatting = client.resolved_capabilities.document_formatting local attached_buffers_list = table.concat(vim.lsp.get_buffers_by_client_id(client.id), ", ") local client_info = { fmt("* Name: %s", name), fmt("* Id: [%s]", tostring(id)), + fmt("* filetype(s): [%s]", table.concat(filetypes, ", ")), fmt("* Attached buffers: [%s]", tostring(attached_buffers_list)), fmt("* Supports formatting: %s", tostring(document_formatting)), } @@ -106,7 +108,7 @@ function M.toggle_popup(ft) local lsp_info = { "Language Server Protocol (LSP) info", - fmt "* Associated server(s):", + fmt "* Active server(s):", } for _, client in pairs(clients) do |