aboutsummaryrefslogtreecommitdiff
path: root/runtime/compiler/javac.vim
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-11-29 08:54:47 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-11-29 08:57:00 +0800
commit8d7d225caa12e5a25f6853a54a2fd6d144342d3c (patch)
treef456f05a86d76bcb97f3b276d743fab227ef8def /runtime/compiler/javac.vim
parent146b8300a145efa64e579527da8606546a36162b (diff)
downloadrneovim-8d7d225caa12e5a25f6853a54a2fd6d144342d3c.tar.gz
rneovim-8d7d225caa12e5a25f6853a54a2fd6d144342d3c.tar.bz2
rneovim-8d7d225caa12e5a25f6853a54a2fd6d144342d3c.zip
vim-patch:65311c6: runtime(compiler): include spotbugs Java linter
closes: vim/vim#16001 https://github.com/vim/vim/commit/65311c6f472de67b368d83441ca5e93da86161f4 Co-authored-by: Konfekt <Konfekt@users.noreply.github.com> Co-authored-by: Aliaksei Budavei <0x000c70@gmail.com>
Diffstat (limited to 'runtime/compiler/javac.vim')
-rw-r--r--runtime/compiler/javac.vim8
1 files changed, 2 insertions, 6 deletions
diff --git a/runtime/compiler/javac.vim b/runtime/compiler/javac.vim
index 9bd4cdf270..53cd772ed8 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 Jun 14
+" Last Change: 2024 Nov 19 (enable local javac_makeprg_params)
if exists("current_compiler")
finish
@@ -11,11 +11,7 @@ let current_compiler = "javac"
let s:cpo_save = &cpo
set cpo&vim
-if exists("g:javac_makeprg_params")
- execute $'CompilerSet makeprg=javac\ {escape(g:javac_makeprg_params, ' \|"')}'
-else
- CompilerSet makeprg=javac
-endif
+execute $'CompilerSet makeprg=javac\ {escape(get(b:, 'javac_makeprg_params', get(g:, 'javac_makeprg_params', '')), ' \|"')}'
CompilerSet errorformat=%E%f:%l:\ error:\ %m,
\%W%f:%l:\ warning:\ %m,