From 39ca76c9607a7d92aff5b97c50b7ccbf1b2d46b6 Mon Sep 17 00:00:00 2001 From: Sheol27 <63117338+Sheol27@users.noreply.github.com> Date: Wed, 18 Sep 2024 08:22:58 +0200 Subject: [PATCH] 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. --- lua/lazyvim/plugins/extras/lang/omnisharp.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/lazyvim/plugins/extras/lang/omnisharp.lua b/lua/lazyvim/plugins/extras/lang/omnisharp.lua index cac9cf5b..3881e6a4 100644 --- a/lua/lazyvim/plugins/extras/lang/omnisharp.lua +++ b/lua/lazyvim/plugins/extras/lang/omnisharp.lua @@ -52,8 +52,10 @@ return { keys = { { "gd", - function() + LazyVim.has("telescope.nvim") and function() require("omnisharp_extended").telescope_lsp_definitions() + end or function() + require("omnisharp_extended").lsp_definitions() end, desc = "Goto Definition", },