Skip to content

Commit

Permalink
fix(omnisharp): use Go To Definition with fzf.lua (LazyVim#4260)
Browse files Browse the repository at this point in the history
## Description

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

## Related Issue(s)

  - Fixes LazyVim#4258 

## Checklist

- [x ] I've read the
[CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md)
guidelines.
  • Loading branch information
Sheol27 authored Sep 18, 2024
1 parent 627215a commit 39ca76c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/lazyvim/plugins/extras/lang/omnisharp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down

0 comments on commit 39ca76c

Please sign in to comment.