Skip to content

Commit 96a73ec

Browse files
authored
Merge pull request #675 from amosonn/patch-1
Add feature for opening locations in new tab.
2 parents 0ca6b41 + d2b15bf commit 96a73ec

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

autoload/OmniSharp/locations.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function! OmniSharp#locations#Navigate(location, noautocmds) abort
88
if fnamemodify(a:location.filename, ':p') !=# expand('%:p')
99
execute
1010
\ (a:noautocmds ? 'noautocmd' : '')
11-
\ (&modified && !&hidden ? 'split' : 'edit')
11+
\ (&modified && !&hidden ? 'split' : get(g:, 'OmniSharp_edit_command', 'edit'))
1212
\ fnameescape(a:location.filename)
1313
endif
1414
if get(a:location, 'lnum', 0) > 0

doc/omnisharp-vim.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,13 @@ completion suggestions. By default, only type/method signatures are fetched for
432432
performance reasons. Full documentation can still be fetched when needed using
433433
the |:OmniSharpDocumentation| command. Default: 1 >
434434
let g:omnicomplete_fetch_full_documentation = 1
435+
<
436+
*g:omnicomplete_edit_command*
437+
Use this option to specify which command OmniSharp will use to open locations
438+
found via various commands (for instance `OmniSharpGotoDefinition` or
439+
`OmniSharpFindUsages`).
440+
Default: edit >
441+
let g:OmniSharp_edit_command = 'tabedit'
435442
<
436443
===============================================================================
437444
4. COMMANDS *omnisharp-commands*

0 commit comments

Comments
 (0)