File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -54,9 +54,15 @@ function erlang_compiler#AutoRun(buffer)
54
54
compiler erlang
55
55
let &l: makeprg = fnameescape (g: erlang_compiler_check_script ) . ' ' .
56
56
\ erlang_compiler#GetFlymakeOptions () . ' %'
57
- setlocal shellpipe = >
58
- execute " silent lmake!" shellescape (bufname (a: buffer ), 1 )
59
- call erlang_compiler#errors#SetList (a: buffer , getloclist (0 ))
57
+ if ! g: erlang_quickfix_support
58
+ setlocal shellpipe = >
59
+ execute " silent lmake!" shellescape (bufname (a: buffer ), 1 )
60
+ call erlang_compiler#errors#SetList (a: buffer , getloclist (0 ))
61
+ else
62
+ setlocal shellpipe = >
63
+ execute " silent make!" shellescape (bufname (a: buffer ), 1 )
64
+ call erlang_compiler#errors#SetList (a: buffer , getqflist ())
65
+ endif
60
66
finally
61
67
call erlang_compiler#SetLocalInfo (info)
62
68
endtry
Original file line number Diff line number Diff line change @@ -115,6 +115,10 @@ g:erlang_flymake_options_rules *g:erlang_flymake_options_rules*
115
115
Similar to |g:erlang_make_options_rules|, but used when performing
116
116
on-the-fly syntax check (a.k.a. flymake). The default value is [].
117
117
118
+ g:erlang_quickfix_support *g:erlang_quickfix_support*
119
+ Enable |quickfix| support instead of |location-list|. If `1`,
120
+ it is enabled, if `0`, it is disabled. The default value is `0`.
121
+
118
122
COMPILATION OPTIONS *vim-erlang-compilation-options*
119
123
120
124
--outdir DIR
Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ if !exists("g:erlang_flymake_options_rules")
32
32
let g: erlang_flymake_options_rules = []
33
33
endif
34
34
35
+ if ! exists (" g:erlang_quickfix_support" )
36
+ let g: erlang_quickfix_support = 0
37
+ endif
38
+
35
39
command ErlangDisableShowErrors call erlang_compiler#DisableShowErrors ()
36
40
command ErlangEnableShowErrors call erlang_compiler#EnableShowErrors ()
37
41
command ErlangToggleShowErrors call erlang_compiler#ToggleShowErrors ()
You can’t perform that action at this time.
0 commit comments