fix(omnisharp): use Go To Definition with fzf.lua (#4260)

## Description

There was a problem with Omnisharp with fzf.lua enabled instead of
telescope. As discussed in #4258, this change makes Go To Definition
work with fzf.lua.

## Related Issue(s)

  - Fixes #4258 

## Checklist

- [x ] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
This commit is contained in:
Sheol27 2024-09-18 08:22:58 +02:00 committed by GitHub
parent 627215a72b
commit 39ca76c960
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -52,8 +52,10 @@ return {
keys = { keys = {
{ {
"gd", "gd",
function() LazyVim.has("telescope.nvim") and function()
require("omnisharp_extended").telescope_lsp_definitions() require("omnisharp_extended").telescope_lsp_definitions()
end or function()
require("omnisharp_extended").lsp_definitions()
end, end,
desc = "Goto Definition", desc = "Goto Definition",
}, },