Skip to content
This repository has been archived by the owner on Aug 11, 2024. It is now read-only.

lsp_finder: not working if LSP is running in single file mode #41

Open
xeluxee opened this issue Dec 1, 2021 · 0 comments
Open

lsp_finder: not working if LSP is running in single file mode #41

xeluxee opened this issue Dec 1, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@xeluxee
Copy link

xeluxee commented Dec 1, 2021

Description

  1. Open a file that's not in a project, so there is no root directory.
  2. Launch :Lspsaga lsp_finder
  3. A message is printed: [LspSaga] get root dir failed

Expected Behavior

Even if there's no root it should work, as trouble do (it finds references if i launch :Trouble lsp_references)

Details

Reproduce
  1. Install a language server, e.g. clangd
  2. Create a simple cpp file in an empty folder (not git managed, because it must run in single file mode)
  3. Launch :Lspsaga lsp_finder
  4. A message is printed: [LspSaga] get root dir failed

To make sure it runs in single file mode run :LspInfo and you should get an output like this (see root directory):
clangd-singlefile

Environment
  • nvim --version output:
NVIM v0.6.0
Build type: Release
LuaJIT 2.0.5
  • Operating system: gnu/linux
  • lspsaga commit: 518c12e
@xeluxee xeluxee added the bug Something isn't working label Dec 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant