From acc93eb3febaaf3950f65b70fa33f21edfb963f0 Mon Sep 17 00:00:00 2001 From: Michael Lingelbach Date: Thu, 14 Jan 2021 02:39:12 -0800 Subject: Fix root detection for LspInfo, cache setup --- lua/lspconfig/configs.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lua/lspconfig/configs.lua') diff --git a/lua/lspconfig/configs.lua b/lua/lspconfig/configs.lua index d1b0090d..7da5c6ef 100644 --- a/lua/lspconfig/configs.lua +++ b/lua/lspconfig/configs.lua @@ -118,6 +118,12 @@ function configs.__newindex(t, config_name, config_def) local get_root_dir = config.root_dir + -- Used by :LspInfo + M.get_root_dir = config.root_dir + M.filetypes = config.filetypes + M.handlers = config.handlers + M.cmd = config.cmd + -- In the case of a reload, close existing things. if M.manager then for _, client in ipairs(M.manager.clients()) do -- cgit v1.2.3-70-g09d2