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 +