From 622804e6745bb5dfaf2562bee13094102fe92130 Mon Sep 17 00:00:00 2001 From: ray-x Date: Thu, 28 Oct 2021 15:35:30 +1100 Subject: [PATCH] client load table on filetype detected --- lua/navigator/lspclient/clients.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/navigator/lspclient/clients.lua b/lua/navigator/lspclient/clients.lua index e9e087b..cd95cae 100644 --- a/lua/navigator/lspclient/clients.lua +++ b/lua/navigator/lspclient/clients.lua @@ -537,7 +537,8 @@ end local function setup(user_opts) local ft = vim.bo.filetype - if _LoadedFiletypes[ft] then + local bufnr = tostring(vim.api.nvim_get_current_buf()) + if _LoadedFiletypes[ft .. bufnr] then log("navigator was loaded for ft", ft) return end