diff options
author | Christian Clason <c.clason@uni-graz.at> | 2024-06-16 17:00:30 +0200 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2024-06-16 23:24:55 +0200 |
commit | c3cb56d8ec2cab6842a8678c84d7fed4776822ca (patch) | |
tree | 153dd2618d54e1919f1cee7b10ed2731363741bf /runtime/compiler/javac.vim | |
parent | 72ddf213a16d7b926ec439ce7616c95d1c041071 (diff) | |
download | rneovim-c3cb56d8ec2cab6842a8678c84d7fed4776822ca.tar.gz rneovim-c3cb56d8ec2cab6842a8678c84d7fed4776822ca.tar.bz2 rneovim-c3cb56d8ec2cab6842a8678c84d7fed4776822ca.zip |
vim-patch:0ddab58: runtime(java): Add a config variable for commonly used compiler options
The value of g:javac_makeprg_params, if set, is added to the value of
'makeprg' as an option string.
closes: vim/vim#14999
https://github.com/vim/vim/commit/0ddab582fa13d1d653800494e45ecfba00974a18
Co-authored-by: Doug Kearns <dougkearns@gmail.com>
Diffstat (limited to 'runtime/compiler/javac.vim')
-rw-r--r-- | runtime/compiler/javac.vim | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/runtime/compiler/javac.vim b/runtime/compiler/javac.vim index f5fe84124f..9bd4cdf270 100644 --- a/runtime/compiler/javac.vim +++ b/runtime/compiler/javac.vim @@ -1,7 +1,7 @@ " Vim compiler file " Compiler: Java Development Kit Compiler " Maintainer: Doug Kearns <dougkearns@gmail.com> -" Last Change: 2024 Apr 03 +" Last Change: 2024 Jun 14 if exists("current_compiler") finish @@ -11,7 +11,12 @@ let current_compiler = "javac" let s:cpo_save = &cpo set cpo&vim -CompilerSet makeprg=javac +if exists("g:javac_makeprg_params") + execute $'CompilerSet makeprg=javac\ {escape(g:javac_makeprg_params, ' \|"')}' +else + CompilerSet makeprg=javac +endif + CompilerSet errorformat=%E%f:%l:\ error:\ %m, \%W%f:%l:\ warning:\ %m, \%-Z%p^, |