gfanto / fzf-lsp.nvim

Enable the power of fzf fuzzy search for the neovim built in lsp
MIT License
224 stars 11 forks source link

Incoming calls not working #39

Open frankplow opened 3 months ago

frankplow commented 3 months ago

Using clangd with the following MWE:

main.c

#include <stdio.h>

void foo() {
    printf("Hello world\n");
}

int main() {
    foo();
}

compile_commands.json

[
    {
        "directory": "<ABSOLUTE PATH TO DIRECTORY CONTAINING main.c>",
        "arguments": ["clang", "main.c"],
        "file": "main.c"
    }
]

If I place the cursor over the symbol foo on line 3 and execute the command :IncomingCalls then I see an error message Incoming calls not found, whereas if I run :lua vim.lsp.buf.incoming_calls() then a quickfix window appears with a single entry main.c|8 col 5| main, corresponding with the position at which foo is called from main.

frankplow commented 3 months ago

Possibly related: https://github.com/gfanto/fzf-lsp.nvim/issues/27#issuecomment-1153553507 -- I am using sync handlers, and it is whether that issue was resolved.