ojroques/nvim-lspfuzzy

Is able to support fuzzy finding of workspace symbols ?

Closed this issue · 4 comments

List all the workspace symbols, and searching on the fly.

Yes it should support it, see Supported LSP methods.

If nothing appears it may be that your LSP server doesn't support that method. Let me know if it does support the method but the plugin still fails to print anything.

I'm using clangd with nvim-lsp, I notice clangd support workspace/symbol, but I can only search with a concrete symbol。
calling vim.lsp.buf.workspace_symbol() give me a pattern to type, not listing all the symbols.

But when you make a query the results are displayed in fzf right?

It's due to how Neovim LSP workspace symbol method works, see the doc:

  • When you call workspace_symbol() without argument, Neovim asks you for a query
  • Then it makes the workspace_symbol request to the LSP server with your query
  • The plugin displays the results of that request with FZF

Unfortunately you cannot call workspace_symbol() without argument yet. So there isn't really a way to filter all symbols through FZF at the moment, sorry.

That's it. It is really not a nvim-lspfuzzy issue. closed. thanks again.