-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not being able to go to definition #14
Comments
had another keymapping pointing to the normal lsp go to definition. Your plugin works fine thank you! |
I got the same error. Hi @AdamBremholm, could you please re-open this issue? The reason is that the README claims that this command is not necessary for neovim nightly, which implies that |
Hi @pluma9 , have you set the handler part of the config? |
@Hoffs Yes, I have (I guess this is the reason why I can do
|
@pluma9 based on your config snippet, you have |
@Hoffs It works like a charm now. Thanks for pointing that out. |
I am getting the below error when trying to go to definition on an external library going to definition with:
lua require('omnisharp_extended').telescope_lsp_definitions()
Error executing vim.schedule lua callback: /usr/local/share/nvim/runtime/lua/vim/lsp/util.lua:1077: Cursor position outside buffer
stack traceback:
[C]: in function 'nvim_win_set_cursor'
/usr/local/share/nvim/runtime/lua/vim/lsp/util.lua:1077: in function 'jump_to_location'
...ker/start/telescope.nvim/lua/telescope/builtin/__lsp.lua:175: in function 'handler'
/usr/local/share/nvim/runtime/lua/vim/lsp.lua:1241: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0>
latest part from the lsp.log
./vim/lsp/rpc.lua:473 "rpc.receive" { id = 12, jsonrpc = "2.0", result = { activeParameter = 0, activeSignature = 1, signatures = { { documentation = '\n
[DEBUG][2022-09-02 20:12:46] .../lua/vim/lsp.lua:1239 "LSP[omnisharp]" "client.request" 1 "textDocument/definition" { position = { character = 37, line = 20 }, textDocument = { uri = "file:///home/adam/personal/car-api/CarConsole/Program.cs" }} <function 1> 4
[DEBUG][2022-09-02 20:12:46] .../vim/lsp/rpc.lua:364 "rpc.send" { id = 13, jsonrpc = "2.0", method = "textDocument/definition", params = { position = { character = 37, line = 20 }, textDocument = { uri = "file:///home/adam/personal/car-api/CarConsole/Program.cs" } }}
[DEBUG][2022-09-02 20:12:46] .../vim/lsp/rpc.lua:473 "rpc.receive" { id = 13, jsonrpc = "2.0", result = { range = { end = { character = 41, line = 61 }, start = { character = 15, line = 61 } }, uri = "file:///%24metadata%24/Project/CarConsole/Assembly/Microsoft/AspNetCore/Authorization/Symbol/Microsoft/AspNetCore/Authorization/AuthorizationPolicyBuilder.cs" }}
~/.omnisharp » cat omnisharp.json
{
"RoslynExtensionsOptions": {
"enableDecompilationSupport": true
}
omnisharp works fine normally,. and is installed with:
williamboman/nvim-lsp-installer
}
go to definition works with vscode for same property.
nvim --version
NVIM v0.8.0-dev
The text was updated successfully, but these errors were encountered: