summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/core/info.lua
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-10-11 22:03:16 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-10-11 22:03:16 +0200
commitdf66b461596d351367f90d41a0fabffb873de4be (patch)
tree711b15790bb97ba0bfa57e1e863fe9a521d55bec /.config/nvim/lua/core/info.lua
parent611b15e94dadc7351d5ff67f268791d5269ea112 (diff)
Merge updates from lunarvim
Diffstat (limited to '.config/nvim/lua/core/info.lua')
-rw-r--r--.config/nvim/lua/core/info.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/.config/nvim/lua/core/info.lua b/.config/nvim/lua/core/info.lua
index bb53644..cf4387e 100644
--- a/.config/nvim/lua/core/info.lua
+++ b/.config/nvim/lua/core/info.lua
@@ -11,6 +11,7 @@ local M = {
local fmt = string.format
local text = require "interface.text"
+local lsp_utils = require "lsp.utils"
local function str_list(list)
return fmt("[ %s ]", table.concat(list, ", "))
@@ -75,7 +76,7 @@ local function tbl_set_highlight(terms, highlight_group)
end
local function make_client_info(client)
- local client_enabled_caps = require("lsp.utils").get_ls_capabilities(client.id)
+ local client_enabled_caps = lsp_utils.get_client_capabilities(client.id)
local name = client.name
local id = client.id
local document_formatting = client.resolved_capabilities.document_formatting
@@ -97,8 +98,7 @@ local function make_client_info(client)
end
function M.toggle_popup(ft)
- local lsp_utils = require "lsp.utils"
- local clients = lsp_utils.get_active_client_by_ft(ft)
+ local clients = lsp_utils.get_active_clients_by_ft(ft)
local client_names = {}
local header = {