From b284439c0bc4a160b68137007436f8d503c81a81 Mon Sep 17 00:00:00 2001 From: Nick Jensen Date: Mon, 29 Jun 2020 13:41:00 +1200 Subject: [PATCH] Exclude declaration from FindUsages --- autoload/OmniSharp/actions/usages.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autoload/OmniSharp/actions/usages.vim b/autoload/OmniSharp/actions/usages.vim index bc819c4e6..e30ef37db 100644 --- a/autoload/OmniSharp/actions/usages.vim +++ b/autoload/OmniSharp/actions/usages.vim @@ -18,7 +18,10 @@ endfunction function! s:StdioFind(Callback) abort let opts = { - \ 'ResponseHandler': function('s:StdioFindRH', [a:Callback]) + \ 'ResponseHandler': function('s:StdioFindRH', [a:Callback]), + \ 'Parameters': { + \ 'ExcludeDefinition': 1 + \ } \} call OmniSharp#stdio#Request('/findusages', opts) endfunction