Skip to content

Commit

Permalink
[#25] Add g:tsuquyomi_disable_quickfix option.
Browse files Browse the repository at this point in the history
  • Loading branch information
Quramy committed Jun 19, 2015
1 parent f5898b5 commit 51dd003
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions autoload/tsuquyomi.vim
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,9 @@ endfunction

" #### Geterr {{{
function! tsuquyomi#geterr()
if g:tsuquyomi_disable_quickfix
return
endif
if len(s:checkOpenAndMessage([expand('%:p')])[1])
return
endif
Expand Down
5 changes: 5 additions & 0 deletions doc/tsuquyomi.jax
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,11 @@ g:tsuquyomi_completion_case_sensitive (デフォルト値 0)
|tsuquyomi#complete|実行時に補完候補をcase-sensitiveに
探索するかどうか.

*g:tsuquyomi_disable_quickfix*
g:tsuquyomi_disable_quickfix (デフォルト値 0)
値をセットするとバッファ保存時に |:TsuquyomiGeterr|
実行されなくなる.

------------------------------------------------------------------------------
キーマッピング *tsuquyomi-key-mappings*

Expand Down
4 changes: 4 additions & 0 deletions doc/tsuquyomi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@ g:tsuquyomi_completion_case_sensitive (default 0)
Whether to search completion case-sensitively when
|tsuquyomi#complete|.

*g:tsuquyomi_disable_quickfix*
g:tsuquyomi_disable_quickfix (default 0)
If set, |:TsuquyomiGeterr| isn't called when you save buffers.

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

Expand Down
5 changes: 4 additions & 1 deletion plugin/tsuquyomi.vim
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,17 @@ let g:tsuquyomi_tsserver_debug =
\ get(g:, 'tsuquyomi_tsserver_debug', 0)
let g:tsuquyomi_nodejs_path =
\ get(g:, 'tsuquyomi_nodejs_path', 'node')
let g:tsuquyomi_waittime_after_open=
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', 80)
let g:tsuquyomi_completion_case_sensitive =
\ get(g:, 'tsuquyomi_completion_case_sensitive', 0)
let g:tsuquyomi_definition_split =
\ get(g:, 'tsuquyomi_definition_split', 0)
let g:tsuquyomi_disable_quickfix =
\ get(g:, 'tsuquyomi_disable_quickfix', 0)
" Global options defintion. }}}
" Global options defintion. }}}

" augroup tsuquyomi_global_command_group
Expand Down

0 comments on commit 51dd003

Please sign in to comment.