Skip to content

Commit

Permalink
Merge pull request #11 from icholy/master
Browse files Browse the repository at this point in the history
:) Thanks.
  • Loading branch information
Quramy committed Apr 30, 2015
2 parents 88c95cc + a354439 commit 2698b4d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autoload/tsuquyomi.vim
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,8 @@ function! tsuquyomi#definition()
" Same file
call tsuquyomi#bufManager#pushNavDef(l:file, {'line': l:line, 'col': l:offset})
call cursor(l:info.start.line, l:info.start.offset)
elseif g:tsuquyomi_definition_split == 0
execute 'edit +call\ cursor('.l:info.start.line.','.l:info.start.offset.') '.l:info.file
else
" If other file, split window
execute 'split +call\ cursor('.l:info.start.line.','.l:info.start.offset.') '.l:info.file
Expand Down
6 changes: 6 additions & 0 deletions doc/tsuquyomi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@ g:tsuquyomi_tsserver_path (default `''`)
g:tsuquyomi_nodejs_path (default 'node')
A path to Node.js.


g:tsuquyomi_definition_split
g:tsuquyomi_definition_split (default 1)
Whether to open a new split when navigating to definition in
another file. See :TsuquyomiDefinition.

------------------------------------------------------------------------------
KEY MAPPINGS *tsuquyomi-key-mappings*

Expand Down
2 changes: 2 additions & 0 deletions plugin/tsuquyomi.vim
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ let g:tsuquyomi_waittime_after_open=
\ get(g:, 'tsuquyomi_waittime_after_open', 0.01)
let g:tsuquyomi_completion_chank_size =
\ get(g:, 'tsuquyomi_completion_chank_size', 15)
let g:tsuquyomi_definition_split =
\ get(g:, 'tsuquyomi_definition_split', 1)
" Global options defintion. }}}

" augroup tsuquyomi_global_command_group
Expand Down

0 comments on commit 2698b4d

Please sign in to comment.