nvim-lspconfig
nvim-lspconfig copied to clipboard
LspInfo: Active Clients not attached reporting root dir as Running in single file mode
Description
This happening because the test here is failing.
if root_dir == nil or fname:sub(1, root_dir:len()) ~= root_dir then
matched = false
end
fname is the always associated with the original buffer so this test is always failing when finding a client that does not have the same root. I'm not sure why we can't rely purely on the root_dir from the client and remove this test ?