From 1258ca4430f6dc04f9375f5a56b8b702efdb8ce2 Mon Sep 17 00:00:00 2001 From: Wang Shidong Date: Thu, 18 May 2017 13:48:14 +0800 Subject: [PATCH] Update kotlin.vim --- autoload/SpaceVim/layers/lang/kotlin.vim | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/autoload/SpaceVim/layers/lang/kotlin.vim b/autoload/SpaceVim/layers/lang/kotlin.vim index d4c905288..48693faa0 100644 --- a/autoload/SpaceVim/layers/lang/kotlin.vim +++ b/autoload/SpaceVim/layers/lang/kotlin.vim @@ -11,5 +11,26 @@ function! SpaceVim#layers#lang#kotlin#plugins() abort endfunction function! SpaceVim#layers#lang#kotlin#config() abort - +if g:spacevim_enable_neomake +" neomake support: +let g:neomake_kotlin_kotlinc_maker = { + \ 'args': ['-cp', s:classpath(), '-d', s:outputdir()], + \ 'errorformat': + \ "%E%f:%l:%c: error: %m," . + \ "%W%f:%l:%c: warning: %m," . + \ "%Eerror: %m," . + \ "%Wwarning: %m," . + \ "%Iinfo: %m," + \ } +let g:neomake_kotlin_enabled_makers = ['kotlinc'] +endif endfunction + +func! s:classpath() + +endf + +func! s:outputdir() + +endf +