nvim-lspconfig icon indicating copy to clipboard operation
nvim-lspconfig copied to clipboard

LspInfo: Active Clients not attached reporting root dir as Running in single file mode

Open thecontinium opened this issue 1 year ago • 4 comments

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 ?

thecontinium avatar Jul 09 '24 14:07 thecontinium