mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat(c#): route references and implementations lsp calls through omnisharp-extended
This commit is contained in:
parent
abec8fbb03
commit
7eb7fe0b3b
1 changed files with 21 additions and 1 deletions
|
|
@ -46,7 +46,13 @@ return {
|
||||||
omnisharp = {
|
omnisharp = {
|
||||||
handlers = {
|
handlers = {
|
||||||
["textDocument/definition"] = function(...)
|
["textDocument/definition"] = function(...)
|
||||||
return require("omnisharp_extended").handler(...)
|
return require("omnisharp_extended").definition_handler(...)
|
||||||
|
end,
|
||||||
|
["textDocument/references"] = function(...)
|
||||||
|
return require("omnisharp_extended").references_handler(...)
|
||||||
|
end,
|
||||||
|
["textDocument/implementation"] = function(...)
|
||||||
|
return require("omnisharp_extended").implementation_handler(...)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
keys = {
|
keys = {
|
||||||
|
|
@ -57,6 +63,20 @@ return {
|
||||||
end,
|
end,
|
||||||
desc = "Goto Definition",
|
desc = "Goto Definition",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"gr",
|
||||||
|
function()
|
||||||
|
require("omnisharp_extended").telescope_lsp_references()
|
||||||
|
end,
|
||||||
|
desc = "References",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"gI",
|
||||||
|
function()
|
||||||
|
require("omnisharp_extended").telescope_lsp_implementation()
|
||||||
|
end,
|
||||||
|
desc = "Goto Implementation",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
enable_roslyn_analyzers = true,
|
enable_roslyn_analyzers = true,
|
||||||
organize_imports_on_format = true,
|
organize_imports_on_format = true,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue