diff options
author | kylo252 <[email protected]> | 2021-11-02 17:03:21 +0100 |
---|---|---|
committer | kylo252 <[email protected]> | 2021-11-02 17:03:21 +0100 |
commit | b04bb9b79864e846af8936d6cee6ced0dd0bf93e (patch) | |
tree | 1d4d0a40330f426b51b8d62409d23869887bf7dd /lua/lvim/core/info.lua | |
parent | 17648e5a07f8c4fe851b09f3037db58c73fe292f (diff) | |
parent | 32ca5afa4ad21f1a616cc30323c272191e7548c1 (diff) |
Merge remote-tracking branch 'origin/rolling'
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 |